Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- def main():
- print "I am thinking of a number from 1 to 10\nYou must guess what it is in three tries"
- Guess = 0
- Tries = 2
- Answer = random.randint(1,10)
- while ( Guess != Answer):
- Guess = input(str(Answer)+"\nEnter your guess: ")
- if ( Guess == Answer ):
- print "CORRECT!"
- elif ( Guess is not Answer and Tries is 0 ):
- print "You're a faggot.\nExiting"
- break
- else:
- print "Sorry, please guess again"
- Tries -= 1
- if True:
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement