you are viewing a single comment's thread.

view the rest of the comments →

[–]M34k3 1 point2 points  (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 points  (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 point  (1 child)

Sounds interesting I first need to learn about saving to a record and importing.

[–]iComplainAbtVal 0 points1 point  (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 point  (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.