vic-st
#1
I’m having trouble with this exercise and a couple other like this…
Here’s my code in a repl.it so all the spacing/indention will be the same:
I feel like it should work, but instead I get the error:
File "script.py", line 4
return True
^
IndentationError: unindent does not match any outer indentation level
How do I fix this?
mtf
#2
Replace all the indentation manually with two or four spaces.
1 Like
vic-st
#3
Huh. Ok, thanks, that works. I’m confused as to why though…
1 Like
mtf
#4
Mixed tabs and spaces is usually the problem.
We can get around this with a simpler return statement…
return num1 > num2 * 2
1 Like
vic-st
#5
Oooh I see what you mean… Thanks a lot, I was stuck on that for awhile!