10 lines
220 B
Python
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") |