while True:
    print('Please type your name.')
    name = input()
    if name == 'your name':
        break
print('Thank you!')

# This program also forces you to type your name
while True:
    print('Please type your name.')
    name = input()
    if name == 'your name':
        break
print('Thank you!')

Update yourName2: added intro comment