0

How do I input 'else statement' in python?

I inputted else: but its returning SyntaxError: invalid syntax

13th Sep 2019, 6:19 AM
Muhammed Abdulmalik
Muhammed Abdulmalik - avatar
8 Answers
+ 1
Did you put an if: statement before it?
13th Sep 2019, 6:46 AM
gabi jo
gabi jo - avatar
+ 1
Probably you didn't write if before.
13th Sep 2019, 6:56 AM
KfirWe
KfirWe - avatar
+ 1
Black j... Maybe its my indentation.
13th Sep 2019, 8:52 AM
Muhammed Abdulmalik
Muhammed Abdulmalik - avatar
0
Gabi jo... No
13th Sep 2019, 8:50 AM
Muhammed Abdulmalik
Muhammed Abdulmalik - avatar
0
KfirWe, yes I didnt
13th Sep 2019, 8:51 AM
Muhammed Abdulmalik
Muhammed Abdulmalik - avatar
0
Thank you all.
13th Sep 2019, 8:52 AM
Muhammed Abdulmalik
Muhammed Abdulmalik - avatar