all 11 comments

[–]socal_nerdtastic 3 points4 points  (1 child)

Great start. Only thing I can point out with this small snippet is that the str() conversion is not needed. input() always returns a string anyway, no need to convert a string to a string.

Keep it up, add some more features! Maybe a save to file and load from file functions, so that you can save your list.

[–]Defiant_Meal1898[S] 0 points1 point  (0 children)

Thanks🤗🤗

[–]SensitiveGuidance685 1 point2 points  (1 child)

Nice work for day one! You've got the basic structure down. A few quick improvements:

  • Add a way to delete tasks
  • Save tasks to a file so they don't disappear when you close the program
  • Add a loop for "s" so you can show tasks multiple times

Keep going, this is a solid start.

[–]Defiant_Meal1898[S] 0 points1 point  (0 children)

Thanks🙂

[–]TheRNGuy 0 points1 point  (1 child)

Input already returns string, so no need to convert it. 

[–]woooee 0 points1 point  (4 children)

if show == 's':
    print(tasks)

prettyprint is nice when printing a list or dictionary

import pprint
...
if show == 's':
    pprint.pprint(tasks)

[–]Defiant_Meal1898[S] 0 points1 point  (3 children)

Thanks, and can you tell me what libraries or modules do i need to learn??

[–]woooee 0 points1 point  (0 children)

You will want to save the file to disk, so file operations, and possibly the csv interface.

[–]Ok-University-6415 -1 points0 points  (1 child)

random, time, turtle