0

I'm getting "Illegal target or variable annotation" and I don't know why. (Python)

I'm getting "Illegal target or variable annotation" and I don't know why. (Python) Here's my code if that helps. while not q1unans: if clothes == "The suit": print("You put on the suit") suit = True q1unans = True elif clothes == "The military armour": print("You put on the military armour") military_armour = True dp = dp + 20 q1unans = True elif clothes == "The nightgown": print("You put on the nightgown for some reason") nightgown = True q1unans = False else: print("INVALID ANSWER") I'm getting it under "clothes == "The military armour":" and "clothes == "The nightgown": ".

21st Jul 2020, 9:01 AM
Satori Herring
1 Odpowiedź