the while loop will go on until the condition to break it is met and can run undefinedly.
to use it write while and the condition>
while x < 50:
do something
reference:
Mastery19 – While loop by sergio is licensed under a Creative Commons Attribution 4.0 International License.