Is there a use of break statement in python? I noticed that we can end the while loop with another faster ways.
As an example we can say:
name=""
while name!="Mahmoud": 
    print('Please type your name.')
    name = input()
print('Thank you!')
instead of:
while True:
    print('Please type your name.')
    name = input()
    if name == 'Mahmoud':  
        break
print('Thank you!')
and what is the meaning of while True?
 
     
     
    