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

Python • Re: Trying two alternate 2 motors with one switch

$
0
0

I have tried code example you posted I get error?


py", line 55
finally:
IndentationError: expected an indented block after 'finally' statement on line 55

That code came from your other helper, @danjperron

He said: "This could be something similar to this"

It is not a complete example. The error message correctly says that you need "an indented block after 'finally' statement"

Maybe using pass as a do-nothing option would satisfy the Python interpreter.


But the example as written demonstrates the formatting of your Python script as I have tried to explain above.

Statistics: Posted by B.Goode — Fri Feb 14, 2025 11:40 am



Viewing all articles
Browse latest Browse all 1288

Trending Articles