2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
|
|
@ -1,8 +1,5 @@
|
|||
'Simple number guessing game'
|
||||
|
||||
import random
|
||||
|
||||
target, guess = random.randint(1, 10), 0
|
||||
while target != guess:
|
||||
guess = int(input('Guess my number between 1 and 10 until you get it right: '))
|
||||
print('Thats right!')
|
||||
guess = int(input("Guess a number that is between 1 and 10: "))
|
||||
print("That's right!")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue