Test 1
user_4388137
python
3 years ago
425 B
12
Indexable
colours = ["red", "blue", "pink", "green"]
print(colours)
choice_1 = input("Do you wish to change something? \n Y/N \n")
while choice_1 == "Y" or choice_1 == "y":
colours.append(input("Okay let's add an object. Give it a name: "))
print(colours)
answer_1 = input("Are we done here? \n Y/N \n")
if answer_1 == "Y" or answer_1 == "y":
print("Okay then.")
print(colours)
breakEditor is loading...