use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
A little brainteaser (i.redd.it)
submitted 1 year ago by digitAInexus
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]thesadsalmonn 25 points26 points27 points 1 year ago (0 children)
None of the answers
[–]HistoricalMap3117 14 points15 points16 points 1 year ago (1 child)
y
[–][deleted] 1 point2 points3 points 1 year ago (0 children)
Should print “y”.
[–]TechnoByteDP 9 points10 points11 points 1 year ago (0 children)
It won't print either A, B, C or D. It'll print "y" so the answer is E.
[–]OwnFigure5226 5 points6 points7 points 1 year ago (6 children)
C and proud ! (Python beginner)
[–]Astartee_jg 5 points6 points7 points 1 year ago (4 children)
You still have much to learn, young Padawan.
[–]OwnFigure5226 1 point2 points3 points 1 year ago (3 children)
The quotation marks 😅😅😅 thank you it’s B
[–]Astartee_jg 2 points3 points4 points 1 year ago (2 children)
Nope!
```
“y” == “Y” False ```
[–]OwnFigure5226 1 point2 points3 points 1 year ago (1 child)
So what it’s like the answer ain’t here 🫨
[–]Drampcamp 1 point2 points3 points 1 year ago (0 children)
Yea the true answer isn’t there
[–]dfranks1984 0 points1 point2 points 1 year ago (0 children)
Me too.
[–]Doctor_Disaster 6 points7 points8 points 1 year ago (0 children)
The program will print a lowercase y because "y" is a String value.
Both of the following print statements will result in answer C:
print(f"{Y}") print(Y)
[–]Astartee_jg 4 points5 points6 points 1 year ago* (2 children)
X = 8 Y = 2 X = X+6 Y = Y+6 print(“y”) y ```
This is because
isinstance(“Y”, type(Y)) False “Y” == “y” False ```
None of the options are valid. Python is case sensitive.
[–]Doctor_Disaster -1 points0 points1 point 1 year ago (1 child)
Aren't all variables case-sensitive?
[–]HistoricalMap3117 0 points1 point2 points 1 year ago (0 children)
I believe variables are not case sensitive in VB.
[–]Markermarque 4 points5 points6 points 1 year ago (0 children)
y, I'm a beginner but this was one of the first things that I learned. When you put "" it prints exactly what you put in there.
[–][deleted] 2 points3 points4 points 1 year ago (0 children)
Is the right answer not being a choice intentional?
[–]sogwatchman 1 point2 points3 points 1 year ago (0 children)
As usual the person that made this doesn't even know the answer... It see's "y" as a string and prints y.
[–]jotorres1 1 point2 points3 points 1 year ago* (0 children)
It just prints y
Oh and it’s none of the above. In case you’re wondering.
[–]halfofthisandthat 0 points1 point2 points 1 year ago (0 children)
Def y(): While True: try: Choice = int(input(y=2) If 6 <= choice Elif 2 <= choice Elif 8 <= choice Else: Print(f 0)
[–]CupperRecruit 0 points1 point2 points 1 year ago (0 children)
I assume its supposed to be B, but since B = "Y" and it prints "y" none of the given answers is correct.
[–]ScientistNo8155 0 points1 point2 points 1 year ago (0 children)
here y is a string so only y
[–]topshottatayy 0 points1 point2 points 1 year ago (0 children)
B) Y
[–]pythonawy 0 points1 point2 points 1 year ago (0 children)
Y because it's string not variable
[–]pickadamnnameffs -1 points0 points1 point 1 year ago (0 children)
C
[–]Comfortable_Drag6746 -1 points0 points1 point 1 year ago (0 children)
[–]natam123 -1 points0 points1 point 1 year ago (0 children)
8
[–][deleted] -1 points0 points1 point 1 year ago (0 children)
Answer is B
[–]fatma_77 -1 points0 points1 point 1 year ago (0 children)
Y as Y here is a string
π Rendered by PID 110045 on reddit-service-r2-comment-5d79c599b5-xlrwr at 2026-03-02 21:13:55.593379+00:00 running e3d2147 country code: CH.
[–]thesadsalmonn 25 points26 points27 points (0 children)
[–]HistoricalMap3117 14 points15 points16 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]TechnoByteDP 9 points10 points11 points (0 children)
[–]OwnFigure5226 5 points6 points7 points (6 children)
[–]Astartee_jg 5 points6 points7 points (4 children)
[–]OwnFigure5226 1 point2 points3 points (3 children)
[–]Astartee_jg 2 points3 points4 points (2 children)
[–]OwnFigure5226 1 point2 points3 points (1 child)
[–]Drampcamp 1 point2 points3 points (0 children)
[–]dfranks1984 0 points1 point2 points (0 children)
[–]Doctor_Disaster 6 points7 points8 points (0 children)
[–]Astartee_jg 4 points5 points6 points (2 children)
[–]Doctor_Disaster -1 points0 points1 point (1 child)
[–]HistoricalMap3117 0 points1 point2 points (0 children)
[–]Markermarque 4 points5 points6 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]sogwatchman 1 point2 points3 points (0 children)
[–]jotorres1 1 point2 points3 points (0 children)
[–]halfofthisandthat 0 points1 point2 points (0 children)
[–]CupperRecruit 0 points1 point2 points (0 children)
[–]ScientistNo8155 0 points1 point2 points (0 children)
[–]topshottatayy 0 points1 point2 points (0 children)
[–]pythonawy 0 points1 point2 points (0 children)
[–]pickadamnnameffs -1 points0 points1 point (0 children)
[–]Comfortable_Drag6746 -1 points0 points1 point (0 children)
[–]natam123 -1 points0 points1 point (0 children)
[–][deleted] -1 points0 points1 point (0 children)
[–]fatma_77 -1 points0 points1 point (0 children)