Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Counting from 10, blast off
- import time
- for x in range(1, 11):
- print(x)
- time.sleep(1)
- print("Blast Off!")
- #99 bottles of beer
- for x in range(100):
- bottles = 99 - x
- if not (bottles == 0):
- print(bottles, "bottles of beer on the wall,", bottles, "bottles of beer.")
- print("Take one down and pass it around,", bottles - 1, "bottles of beer on the wall.")
- else:
- print("No more bottles of beer on the wall, no more bottles of beer.")
- 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