Great! So far, our
while loops only ended when the loop condition was satisfied. However, we can also decide to end a loop inside it:
user_input = input('Please provide a number: ')
user_input = input('Not a number! Please provide a number: ')
print('Your number is:', user_input)
while True is used to introduce an infinite loop – the condition
True is always true. However, inside the loop, we provided the following if statement:
break keyword is used to terminate the whole loop. Once the user provides a real number, the loop immediately finishes.