Guest User

Untitled

a guest
May 19th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.52 KB | None | 0 0
  1. #Counting from 10, blast off
  2. import time
  3.  
  4. for x in range(1, 11):
  5.     print(x)
  6.     time.sleep(1)
  7.  
  8. print("Blast Off!")
  9.  
  10. #99 bottles of beer
  11. for x in range(100):
  12.     bottles = 99 - x
  13.     if not (bottles == 0):
  14.         print(bottles, "bottles of beer on the wall,", bottles, "bottles of beer.")
  15.         print("Take one down and pass it around,", bottles - 1, "bottles of beer on the wall.")
  16.     else:
  17.         print("No more bottles of beer on the wall, no more bottles of beer.")
  18.         print("Go to the store and buy some more, 99 bottles of beer on the wall.")
Advertisement
Add Comment
Please, Sign In to add comment