Test 1

 avatar
user_4388137
python
2 years ago
425 B
6
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)
        break
Editor is loading...