- #1
Cash Fulton
- 24
- 1
I'm too lazy to see the big picture. Here is an example to show you what I'm talking about:
x = str(input())
if x == "that's a nice meme sir":
print("thanks friend")
elif x == "crap meme stop posting anytime":
print("oh")
else:
print("okay")
Why don't you put the variable in front of else? Don't you have to clarify what variable you want else to apply to? Thanks.
x = str(input())
if x == "that's a nice meme sir":
print("thanks friend")
elif x == "crap meme stop posting anytime":
print("oh")
else:
print("okay")
Why don't you put the variable in front of else? Don't you have to clarify what variable you want else to apply to? Thanks.