Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Testing the gist2rss function. | |
Hope it works! | |
/w |
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
# guess a number between 1 and 100 in seven tries | |
import random | |
answer = 'yes' | |
while answer == "yes": | |
NumToGuess = random.randint(1, 100) | |
NumOfTry = 7 | |
print '' | |
print "I am thinking of a number between 1 and 100" | |
print "Try to guess the number in 7 tries" | |
print '' |