I want user input in b to constantly be in te loop
while True: a = ["apple", "banana", "cherry"] b = [input("enter fruits: ")] a.extend(b) print(a)
Aucun commentaire:
Enregistrer un commentaire