0

Python editor bug?

Seems like when I try to write a function in projects, the auto indentation throws errors. I have to manually goto the beginning of the line and use "tab" buttons instead of space, or it says return outside of function.

13th Oct 2020, 5:24 PM
Python Trader
Python Trader - avatar
2 Réponses
+ 1
is this in pydroid? paraphrasing: "it seems like theres a mix of tabs and spaces" error?
13th Oct 2020, 5:28 PM
Slick
Slick - avatar
0
I actually meant it. There's a "tab" that is in a slider within the editor, that works for indenting. My device doesn't have a tab, so I tried using space * 4, that threw an error. This obviously is the other way around if you are using a plain text editor on your computer. I think it's sololearn's specific issue or maybe the test module setup issue, not sure.
13th Oct 2020, 5:35 PM
Python Trader
Python Trader - avatar