This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3.4 | |
import time | |
import random | |
import os | |
os.system('clear') | |
play_again = 'y' | |
answers = ["Yes, most definitely!", "The chances are high!", "Not likely!", "May the odds be ever in your favor.", "You got no shot, kid.", "Try it out and see!", "23% of working", "99.9% success rate", "Congratulations, yes!", "Ask a probably question," "Ask again later", "Better not tell you now", "Cannot predict now", "Concentrate and ask again", "Don't count on it"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3.4 | |
#http://www.reddit.com/r/beginnerprojects/comments/19kxre/project_99_bottles_of_beer_on_the_wall_lyrics/ | |
list = range(1, 100) | |
for i in reversed(list): | |
if i == 1: | |
print("Take one down, pass it around", i, "bottle of beer on the ground\n") | |
else: | |
print("Take one down, pass it around", i, "bottles of beer on the ground\n") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3.4 | |
##This game should assign a random number and tell you if you are high or low | |
import random | |
import os | |
os.system('clear') | |
play_again = 'y' | |
while play_again != 'n': | |
#Generate random number | |
x = random.randrange(100) |