OneCompiler

Why is this SyntaxError?

Code:
a, b, c = map(int, input().split())
if a < b < c:
print(b)
if a > b < c and a < c:
print(a)
if a > b < c and a > c:
print(c)
if a > b > c:
print(b)
if a < b > c and a < c:
print(a)
if a > b > c and a > c:
print(c)
The bold part is where the SyntaxError says

2 Answers

2 years ago by

after each 'if' line is expected indent like

if a < b < c:
    print(b) 
2 years ago by zemiak

None

2 years ago by Lester