Skip to content
Sign UpLog In
Profile icon

Checking randomly

@CrafttheWorld
The Abeka stuff is to hopefully help me study for up coming tests and quizzes. =) I hope that it can help you too.
  • Youtube

    Cover page
    Made with Python
    Recent comments (0)
Repls
Community
CrafttheWorld
CrafttheWorld
shared a Post
2 years ago
I can't figure out how to make this work! :(
I can't make the if else statement work. I've looked at my other codes but still can't figure it out. I think if else statements always get me. :(
Medical Meanings
Python
Coder100
Coder100
Your syntax is indeed slightly wrong. If statements are statements like anything else, so they don't need to be indented! Here is the syntax: if ...: ... elif ...: ... # optional else: ... for you: print("aer-, aero-: means __") response = input() if response == "air": print("Correct!") else: print("Wrong, it means: air") I put your input into a variable instead of an if statement because it's more maintainable that way. Also, input is a function that takes an argument to print to th2 years ago
CrafttheWorld
CrafttheWorld
published a Repl
2 years ago
0
Youtube