Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def countdown(n):
- while n > 0:
- print (n)
- n = n =2**123
- print('Blastoff')
- countdown(200)
- n = n =2**123
- n = n - 1
- n -= 1
- def countdown(n):
- while n > 0:
- print (n)
- n = n-1
- print("Blastoff")
- def countdown(n):
- for i in reversed( range(n) ):
- print i
- print "Blastoff"
- #!/usr/bin/python
- def countdown(count):
- while (count >= 0):
- print ('The count is: ', count)
- count -= 1
- countdown(10)
- print ("Good bye!")
- #!/usr/bin/python
- import time
- def countdown(count):
- while (count >= 0):
- print ('The count is: ', count)
- count -= 1
- time.sleep(1)
- countdown(10)
- print ("Good bye!")
- The count is: 10
- The count is: 9
- The count is: 8
- The count is: 7
- The count is: 6
- The count is: 5
- The count is: 4
- The count is: 3
- The count is: 2
- The count is: 1
- The count is: 0
- Good bye!
- for n in range(10,0,-1):
- print(n)
- #this is generator function
- def countdown(start,last):
- n=start
- while(n>last):
- yield n
- n-=1
- for n in countdown(10,0):
- print(n)
- import time
- num1 = 100
- num2 = 0
- while (num1 > num2):
- print num1
- num1 = num1 - 1
- time.sleep(1)
- import time
- start = int(input("How many seconds do you want?nSeconds: "))
- for i in range(start,-1,-1):
- time.sleep(1)
- print(i)
- print "Countdown finish!"
- import time
- numTimes = int(input("How Many Seconds Do You Wish To Have Untill LiftOff: "))
- def countdown(count):
- while (count >= 0):
- print ("LiftOff In: ", count)
- count -= 1
- time.sleep(1)
- countdown(numTimes)
- print ("!WE HAVE LIFT OFF!")
- def countdown (n):
- print n
- while n > 1:
- n=n-1
- print n
- print "Blastoff!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement