Help with else statements or elif

You can refer to the guide for code formatting:

Basically, put three backticks (`) around your code:

print("Hello, world!")
Raw
```py
print("Hello, world!")
```

A simple solution would be not to use variables and just put the inputs in the if statements, although this will probably look less elegant if your inputs have long messages.

if input("...") == "Yes":
  # ...
elif input("...") == "Yes":
  # ...
else:
  # ...
3 Likes