Skip to content

Instantly share code, notes, and snippets.

@imbyron
Last active December 19, 2015 10:09
Show Gist options
  • Save imbyron/5938833 to your computer and use it in GitHub Desktop.
Save imbyron/5938833 to your computer and use it in GitHub Desktop.
from random import randint
num = randint(1,1000)
print 'Guess what i think?'
bingo = False
while bingo == False:
answer = input()
if answer < num:
print '%d is too small.' % answer
if answer > num:
print '%d is too big.' % answer
if answer == num:
print 'BINGO,you win!!!'
bingo = True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment