Second elif always reports a syntax error.. #16973
-
Using Thonny I have a function that returns a syntax error upon the second elif def Bsmt_htg_upd(mode):
elif mode == 2: # invalid syntax happens here
The docs I rely on are only those of standard Python as I was unable to find any MicroPython specific |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It looks like an Indentition fail. I'd it looks ok in Thonny, check if there is a mix of tab and spaces. |
Beta Was this translation helpful? Give feedback.
-
Thanks that was it. I did not like that the editor in Thonny showed the tabs in yellow so I changed it to not show |
Beta Was this translation helpful? Give feedback.
Thanks that was it. I did not like that the editor in Thonny showed the tabs in yellow so I changed it to not show
them but I didn't realize it would bite me back...