Thursday 2 March 2017

Python 3 While Loop

Python 3 While Loop

The below code block is an example for python while loop

'''While loops'''
a = 11
while a>10:
    a+=1
    print (a)
    break       # prints 12 and then breaks

No comments:

Post a Comment