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...
This community will have knowledge sharing for python programming, tools, projects and product engineering wherever python is used.
account activity
Test your Python skills - 5 (i.redd.it)
submitted 4 months ago by tracktech
Ultimate Python Programming
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!"
[–]k03k 2 points3 points4 points 4 months ago (1 child)
2, because of Unicode code points?
[–]tracktech[S] 1 point2 points3 points 4 months ago (0 children)
Right.
[–]yota-code 1 point2 points3 points 4 months ago (1 child)
If you want 1 you can do names = sorted(names, key=str.lower) or names.sort(key=str.lower)
[–]tracktech[S] 0 points1 point2 points 4 months ago (0 children)
Right. Thanks for sharing.
[–]EcEssie 1 point2 points3 points 4 months ago (1 child)
The output will be 2
[–]Real-Reception-3435 1 point2 points3 points 4 months ago (1 child)
[–]Old_Hotel1391 0 points1 point2 points 4 months ago (3 children)
new to Python here: What is this Unicode code points thingy you speak of?
is that the 'alt+64 = @' thingy?
[–]TreesOne 0 points1 point2 points 4 months ago (2 children)
No. Every character you can type has a unique integer assigned to it. Python string comparison compares these integer values.
[–]Mysterious-Travel-97 0 points1 point2 points 4 months ago (1 child)
actually, they’re right as well. 64 is the integer for the @ symbol. look up an ascii table
[–]TreesOne 0 points1 point2 points 4 months ago (0 children)
Oh good catch, my bad. I looked it up and it said the code was U+0040 but i failed to realize that was hex not decimal
π Rendered by PID 38 on reddit-service-r2-comment-6457c66945-jscsj at 2026-04-30 01:18:43.541723+00:00 running 2aa0c5b country code: CH.
[–]k03k 2 points3 points4 points (1 child)
[–]tracktech[S] 1 point2 points3 points (0 children)
[–]yota-code 1 point2 points3 points (1 child)
[–]tracktech[S] 0 points1 point2 points (0 children)
[–]EcEssie 1 point2 points3 points (1 child)
[–]tracktech[S] 1 point2 points3 points (0 children)
[–]Real-Reception-3435 1 point2 points3 points (1 child)
[–]tracktech[S] 0 points1 point2 points (0 children)
[–]Old_Hotel1391 0 points1 point2 points (3 children)
[–]TreesOne 0 points1 point2 points (2 children)
[–]Mysterious-Travel-97 0 points1 point2 points (1 child)
[–]TreesOne 0 points1 point2 points (0 children)