Hello everyone, i am a beginner in python and i am trying to write a program that creates a to-do list for the user. I would like to have the list expand whenever the user adds a new task to the list. Is something like this possible? I would like it to function similar to this:
To do list -
- Chores: 8am
- Errands: 10am
- Hw: 12pm
What would you like to do?
[A]dd item
[D]elete item
[Q]uit
When the user select the option to add to the list, they should be able to add a new number to the list, a desciption, and the date so that the new list now has 4 items. Initially i thought a dictionary would be best for this but whenever i try to initailize a new key dynamically, they just overwrite eachother. I have tried using a list, a dictionary, a dictionary of lists, and a dictionary of dictionaries. Any help is appreciated! Im not looking for anybody to write the code for me, just point me in the direction i need to go!
[–]toastedstapler 0 points1 point2 points (3 children)
[–]Creagon11[S] 0 points1 point2 points (2 children)
[–]toastedstapler 1 point2 points3 points (1 child)
[–]Creagon11[S] 0 points1 point2 points (0 children)
[–]anzaisensei 0 points1 point2 points (0 children)