Код: Выделить всё
name = input("Please type your name")
while name != "John":
print("Please type your name.")
print("Thank you!")
Подробнее здесь: https://stackoverflow.com/questions/792 ... d-the-loop
Код: Выделить всё
name = input("Please type your name")
while name != "John":
print("Please type your name.")
print("Thank you!")