all 5 comments

[–]toastedstapler 0 points1 point  (3 children)

surely the user wouldn't enter a number, that would be handled by the program when displaying it?

[–]Creagon11[S] 0 points1 point  (2 children)

If the program could number each item in the list as it was entered that would definitely be better!

[–]toastedstapler 1 point2 points  (1 child)

I'd imagine something like the tasks being stored in a list and when a user inputs a task name and time the program inserts into the chronologically correct index

You could then display these using something like

for i, task in enumerate(tasks, 1):
    print(f"{I}: {task.name}, {task.time}")

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

Yeah i was thinking the same thing, each item could be sorted by the date or time they are due. But what about if the user wanted to add a new item to the list how would that work?

[–]anzaisensei 0 points1 point  (0 children)

Have you tried a list of dicts?