0

What is 'IndentationError Unexpected.......'?

14th Sep 2020, 11:00 AM
Name
Name - avatar
8 Respostas
+ 1
you either over or under indented the code. can you post it so we can see?
14th Sep 2020, 11:00 AM
Slick
Slick - avatar
+ 1
The code block of function need to have the same number of space at the beginning of each line. Take for example def myFunction(): %%%%Line one %%%%Line two %%%%Line three
14th Sep 2020, 11:28 AM
Gordon
Gordon - avatar
+ 1
Thanks Sir - - Slick- -
14th Sep 2020, 11:59 AM
Name
Name - avatar
+ 1
thanks Sir **Gordon**
14th Sep 2020, 12:00 PM
Name
Name - avatar
+ 1
couldnt tell ya, it works fine for me when i type it out. try making it from scratch
15th Sep 2020, 7:56 AM
Slick
Slick - avatar
14th Sep 2020, 11:46 AM
Name
Name - avatar
0
return needs to match the indent level of everything else in the function https://code.sololearn.com/cesXMNWdbjtw/?ref=app
14th Sep 2020, 11:54 AM
Slick
Slick - avatar
15th Sep 2020, 1:25 AM
Name
Name - avatar