While loop and break and continue statement in python

technical talkiess
0

 i=0

while(i<45):

    # continuoue the loop continuoue

    if i<5:

        i= i+1

        continue

    # break means the stop the loop 

    if i>40:

        i= i+1

        break


    print(i)

    i= i+1

Tags

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)