Can you please post the full error shown in Thonny as that may help identify where the error is exactly, why you are seeing it, and what the resolution would be.I copied this code into Thonny, and it is throwing a "Syntax error: positional argument follows keyword argument".
It is often a mismatch between how a function is defined and how it is used ...
Code:
def test(a, b=None): passtest(a=1, 2)
Code:
pi@Pi4B:/tmp $ python xyzzy.py File "/tmp/xyzzy.py", line 3 test(a=1, 2) ^SyntaxError: positional argument follows keyword argument
Statistics: Posted by hippy — Tue Mar 04, 2025 4:06 pm