#!/usr/bin/python3

while True:
    print('Please type your name: ')
    name = input()
    # when condition is met
    if name == 'your name':
        # break out of the loop, which takes you back to the same indentation level as where the loop starts!
        break
print ('thank you!')    