Can anyone please help me in this


#1


if i take return out from function there is indentation error and if its in function it is showing error please suggest changes


#2

Just shift the “return -999” statement a little bit and make it under your “if” statement and i think it will work just fine.
I also recommend you to shift the “try” and “except” a little bit.
Let me know if it worked


#3

sir, i did that many times but thats showing error thn wid the help of ubuntu keys i used keyword to correct indentation error. All errors regrading try and except are removed only this return -999 is left.

can you send sample of ur code


#4

they are just saying take return -999 outside d function. If i do then its showing error


#5


Here is my code. I hope it helps


#6

no sir the output is still d same


#7

write the whole code again then.


#8

:+1::+1::+1::+1::sleepy: ok sir


#9

is the output same again for line 19?


#10

Try to be consistent with your identation, I suggest using some auto-complete IDE like VS or Sublime Text for practice.
Also, tabs and spaces are considered to be completely different, although the spacing looks the same (like 8 spaces is not equivalent to 2 tabs when you are using nano or shell). Most IDEs will fix that for you.


#11

sir i am using atom,vs code as per the need i knw indentations but as ubuntu is running in vmware so i am not to paste my code if i write in text editor. though i enable indentation but still facing problem