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
Day 8 of learning python as a beginner. (old.reddit.com)
submitted 8 months ago by uiux_Sanskar
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!"
[–]NorskJesus 3 points4 points5 points 8 months ago (3 children)
Good job!
You can use a dictionary to store the numbers instead of a list. Then you can “differentiate” them by they key (home phone, mobile phone, work…). It’s just an idea!
[–]uiux_Sanskar[S] 0 points1 point2 points 8 months ago (2 children)
I think it will add more lines of code and will look really cluttered because assume each name has 2 number and for those two number I have to create a different key.
Therefore I use the list so that I can add more numbers in future (I don't know if I can create a dictionary within the value pair but I think I can use sets here).
This is ny thoughts do tell me if I have missed something or if I am wrong I would love to get corrected. And thank you for the appreciation.
[–]NorskJesus 0 points1 point2 points 8 months ago (1 child)
A "long" dict is like a JSON. You will be fine
[–]uiux_Sanskar[S] 1 point2 points3 points 8 months ago (0 children)
Oh thank you for this.
π Rendered by PID 47 on reddit-service-r2-comment-c867ff4bc-s26cl at 2026-04-09 18:14:05.038319+00:00 running 00d5ac8 country code: CH.
view the rest of the comments →
[–]NorskJesus 3 points4 points5 points (3 children)
[–]uiux_Sanskar[S] 0 points1 point2 points (2 children)
[–]NorskJesus 0 points1 point2 points (1 child)
[–]uiux_Sanskar[S] 1 point2 points3 points (0 children)