example here is program that allows the user to enter up to numbers the user can stop early by entering negative number for in range( )num eval(input'enter number')if num< break this could also be accomplished with while loop = num= while num eval(input'enter number')either method is ok in many cases the break statement can help make your code easier to understand and less clumsy example earlier in the we used while loop to allow the user to repeatedly enter temperatures to be converted here ismore or lessthe original version on the left compared with different approach using the break statement temp while temp!=- temp eval(input'')if temp!=- print( / *temp+ elseprint'bye' while truetemp eval(input'')if temp==- print'bye 'break print( / *temp+ the else statement there is an optional else that you can use with break statements the code indented under the else gets executed only if the loop completes without break happening example this is simple example based off of example of the previous section for in range( )num eval(input'enter number')if num< print'stopped early 'break elseprint'user entered all ten values '