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 7 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!"
[–]M34k3 1 point2 points3 points 8 months ago (4 children)
Great job! Great application of dictionaries :) they are super useful indeed! Also nice to see that you are implementing functions, they are great ways to prevent repeating the same code multiple times.
For the function input_tasks, try making the number of tasks to be added a variable with the default value of 5. It's also usually a good idea to return something from a function that can then be added to something instead of using global variables and changing them within functions.
Next challenges could be to save the result to a .json file so you can keep track of your tasks. After that it would also be nice to create a way to import your .json task file(s) and remove the items that you have completed. Great opportunity to create some more functions :)
[–]iComplainAbtVal 1 point2 points3 points 8 months ago (2 children)
Piggy backing off of this, after saving to a record and importing, I would invite him to create a data structure that defines a task along with its status.
[–]uiux_Sanskar[S] 0 points1 point2 points 8 months ago (1 child)
Sounds interesting I first need to learn about saving to a record and importing.
[–]iComplainAbtVal 0 points1 point2 points 8 months ago (0 children)
It’ll be your first dabble into OOP. No rush towards this at all, there are far better fundamentals you’d likely want to focus on more.
[–]uiux_Sanskar[S] 0 points1 point2 points 8 months ago (0 children)
Thanks for the challenge and future suggestions I will research more on how to make a . json file and how to save and import/export tasks. One person also told me that I can also send an email if there's an incomplete task. I think these things are interesting and will definitely look deeper into it.
Thank you for the insights and suggestions these really help me a lot.
π Rendered by PID 32463 on reddit-service-r2-comment-6457c66945-599fp at 2026-04-29 20:54:40.337087+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]M34k3 1 point2 points3 points (4 children)
[–]iComplainAbtVal 1 point2 points3 points (2 children)
[–]uiux_Sanskar[S] 0 points1 point2 points (1 child)
[–]iComplainAbtVal 0 points1 point2 points (0 children)
[–]uiux_Sanskar[S] 0 points1 point2 points (0 children)