python_Anfangskurs/ToDo-List.py
2025-10-09 08:36:22 +02:00

10 lines
220 B
Python

todos = ["Apfel", "Banane"]
newitem = input("Was möchtest du hinzufügen? ")
todos.append(newitem)
print("Meine Liste hat die folgenden Elemente: ")
for todo in todos:
print(f"- {todo}")
print("Programm beendet")