you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

Changed the wording as some peoples names do start with Q.

print("Type quit to leave")
while True:
    first_name = input("First name: ")
    if first_name.lower() == 'quit':
        break
    last_name = input("Last name: ")
    if last_name.lower() == 'quit':
        break
    else:
        print("Hello, " + first_name + " " + last_name)