Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8041

MicroPython • Re: NameError: local variable referenced before assignment

$
0
0
OK, thanks guys, I will try your suggestions. Odd thing is, th3 program worked before I added the ‘if’ satement
If you edit your post to surround the code with [code] your code here [/code] tags, it would be a lot easier for us to see if you've indented properly (vital with python's stupid syntax rules).

Statistics: Posted by wildfire — Sun Jan 25, 2026 8:00 pm



Viewing all articles
Browse latest Browse all 8041

Trending Articles