Python

using a little input made a guessing game

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
guess1 = ("horse")
guess2 = ("dog")

animal = input ("The animal I like is. Your choices are: ",  guess1 )

if animal == guess1 :
  print ("That's right!")
elif animal == guess2 :
  print ("Close!")
else :
  print ("Try agian")