name = input("What's your name? ")

# TODO: Ask the user by name if they understand Python while loops
understanding = input("{}, do you understand Python while loops?\n(Enter yes/no)".format(name)) # cuando se usa el .format no se agrega f, \n lo muestra en la linea de abajo

# TODO: Write a while statement that checks if the user doesn't understand while loops
while understanding.lower() != 'yes':

    # TODO: Since the user doesn't understand while loops, let's explain them.
    print("Ok, {}, while loops in Python repeat as lon as a certain Boolean condition is met.".format(name))

    # TODO: Ask the user again, by name, if they understand while loops.
    understanding = input("{}, now do you understand Python while loops?\n(Enter yes/no)".format(name))

# TODO: Outside the while loop, congratulate the user for understanding while loops
print("That's great, {}. I'm pleased that you understand while loops now. That was getting repetitive.".format(name))
