๐Ÿ“– Beginning Python Programming /
Module: Controlling logic flow

while ...:

๐Ÿ“– Beginning Python Programming / Controlling logic flow / while ...:

Code example: While-Input-List v1

guests = []

while True:
    value = input("Please input a guest name, or 'q' to quit: ")
    if value == "q":
        break
    guests.append(value)

print(guests)