0

When i add "else" it say "SyntaxError"

I'm trying to do the example of the lesson, but i can't 'cause i can't add "else"

11th Dec 2016, 6:21 PM
Gael Hared Sanchez
Gael Hared Sanchez - avatar
2 odpowiedzi
+ 3
check indentation and use ":" like this. if a > b: print(a) else: print(b)
12th Dec 2016, 5:08 AM
Ramin Najjarbashi
Ramin Najjarbashi - avatar
+ 1
check indentation
11th Dec 2016, 6:25 PM
Vipul Walia
Vipul Walia - avatar