Sunday, August 30, 2020

Python Program for while Loop

 def countdown(n):

    while(n>0):

        print(n)

        n=n-1

    print("blast")

countdown(4)

No comments:

Post a Comment