Can't reproduce this error message exactly in this line.
The "match" statement was introduced in python 3.10. With a 3.9-interpreter, I get a syntax error. With 3.13.3 interpreter, the code runs as expected.
Check your python version with "python3 --version" or
The "match" statement was introduced in python 3.10. With a 3.9-interpreter, I get a syntax error. With 3.13.3 interpreter, the code runs as expected.
Check your python version with "python3 --version" or
Code:
import sysprint(sys.version)Statistics: Posted by ghp — Mon Nov 10, 2025 8:33 am