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

Python • Re: counting the steps of the motor in a certain condition of another function

$
0
0
Excuse me, but it very difficult (I am afraid it is impossible without ambiguity) to read your code and understand its structure, the way blocks are nested.
You really should protect code you show against whitespace eating with the 5 th button from the left Code at the top of the typing window

Code:

#here is some code (untested)if (1 != 0):    print("trivial") 
else, it looks like that (whith nested blocks, it is eerie)
#here is some code (untested) : I just copied and pasted: every leading white space was magically eaten!!!
if (1 != 0):
print("trivial")

Statistics: Posted by dbrion1 — Tue Jan 09, 2024 6:49 pm



Viewing all articles
Browse latest Browse all 1261

Trending Articles