Advertisement
Sparkster

Untitled

Jul 19th, 2013
361
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. # It's the final countdown!
  2.  
  3. from time import sleep
  4.  
  5. def countdown(n):
  6.     if n <= 0:
  7.         print "Ready to go - Blastoff!"
  8.     else:
  9.         print n
  10.         sleep(1)
  11.         countdown(n-1)
  12.  
  13. countdown(10)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement