your name thank youif you never enter your namethen the while loop' condition will never be falseand the program will just keep asking forever herethe input(call lets the user enter the right string to make the program move on in other programsthe condition might never actually changeand that can be problem let' look at how you can break out of while loop break statements there is shortcut to getting the program execution to break out of while loop' clause early if the execution reaches break statementit immediately exits the while loop' clause in codea break statement simply contains the break keyword pretty simplerighthere' program that does the same thing as the previous programbut it uses break statement to escape the loop enter the following codeand save the file as yourname pywhile trueprint('please type your name 'name input(if name ='your name'break print('thank you!'you can view the execution of this program at yourname the first line creates an infinite loopit is while loop whose condition is always true (the expression trueafter allalways evaluates down to the value true after the program execution enters this loopit will exit the loop only when break statement is executed (an infinite loop that never exits is common programming bug just like beforethis program asks the user to enter your name nowhoweverwhile the execution is still inside the while loopan if statement checks whether name is equal to 'your nameif this condition is truethe break statement is run and the execution moves out of the loop to print('thank you!'otherwisethe if statement' clause that contains the break statement is skippedwhich puts the execution at the end of the while loop at this pointthe program execution jumps back to the start of the while statement to recheck the condition since this condition is merely the true boolean valuethe execution enters the loop to ask the user to type your name again see figure - for this program' flowchart run yourname pyand enter the same text you entered for yourname py the rewritten program should respond in the same way as the original flow control