cows = ("MOO")
credits = ("Ckacmaster @ V3RM, Ramz44 @ V3RM")
Btools = ("Who?")
kill = ("Who?")
clrwrksp = "k"
FF = ("Who?")
statchange = ("Stat, Amnt, Player")
items = {'Btools': 'kill', 'clrwrksp': 'FF', 'statchange': 'credits'}
print(items)
Choose_Item = input("Select your Item: ")
try:
print( items[Choose_Item] )
except KeyError:
print ('Item %s not found' % Choose_Item )
if input == "cows"
print("MOO")
After the if input == "cows"
I get an invalid syntax error. When i delete the lines from if input == cows
and down, the program executes fine.. I'm just learning python, so anything helps!
Aucun commentaire:
Enregistrer un commentaire