can someone please tell me how to solve this error? This function is supposed to return the lesser of two given numbers if both numbers are even, but returns the greater if one or both numbers are odd I know there is a simple way to write, but this is my way and I'm curious to know why I got this error
Asked
Active
Viewed 217 times
1 Answers
0
The last if
is indented one space more than the else
it's supposed to correspond to (and the other if-elses). Remove a space before it, and you should be OK.

Mureinik
- 297,002
- 52
- 306
- 350
-
Oh my god, I was scratching my head for a couple of hours for this :)) ... Thanks a lot – Nima Mar 07 '20 at 10:30