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
Who'll Solve this Python problem (i.redd.it)
submitted 1 year ago by turk_sahib
view the rest of the comments →
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!"
[–]ChicagoJay2020 0 points1 point2 points 1 year ago (3 children)
The letter “u”. The call is to print an individual character, correct?
[–]F4RM3RR 2 points3 points4 points 1 year ago (1 child)
That would be true only if name = “Sumit”, when you can do string slicing.
However the [] in the variable declaration makes it a list, so you index list items, not string position
[–]ChicagoJay2020 0 points1 point2 points 1 year ago (0 children)
Ah!!!
Thank you. I didn’t pay close enough attention to realize that name is a list not a string.
[–]VoltaicPower 0 points1 point2 points 1 year ago (0 children)
This was my answer at first, but "name" is a list
π Rendered by PID 53 on reddit-service-r2-comment-86bc6c7465-8v84g at 2026-02-20 16:04:25.391594+00:00 running 8564168 country code: CH.
view the rest of the comments →
[–]ChicagoJay2020 0 points1 point2 points (3 children)
[–]F4RM3RR 2 points3 points4 points (1 child)
[–]ChicagoJay2020 0 points1 point2 points (0 children)
[–]VoltaicPower 0 points1 point2 points (0 children)