6th Dec 2019, 6:00 PM
Arydev
Arydev - avatar
7 odpowiedzi
+ 6
Indentation should be used in last line: imp=input() if imp ==("hello"or"hi"): print("hello")
6th Dec 2019, 6:16 PM
Lothar
Lothar - avatar
+ 3
Arydev Go and revise Python again.
6th Dec 2019, 7:32 PM
A͢J
A͢J - avatar
+ 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.
6th Dec 2019, 6:16 PM
Coding Cat
Coding Cat - avatar
+ 2
And your "or" will also not work in this way.
6th Dec 2019, 6:18 PM
Coding Cat
Coding Cat - avatar
+ 1
Print("hello")
6th Dec 2019, 6:01 PM
Arydev
Arydev - avatar
+ 1
What is a inthended block?
6th Dec 2019, 6:19 PM
Arydev
Arydev - avatar