+ 1
What is wrong hear?
7 Antworten
+ 6
Indentation should be used in last line:
imp=input()
if imp ==("hello"or"hi"):
print("hello")
+ 2
You have only to read the error message.
Indentation Error
After an if statement you have to use an indented Block.
if spam == eggs:
print('what else' )
So shift your print Statement to the right.
+ 2
And your "or" will also not work in this way.
+ 1
Print("hello")
+ 1
What is a inthended block?