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

Python • Re: NameError: name 'Color' is not defined

$
0
0
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

Code:

import sysprint(sys.version)

Statistics: Posted by ghp — Mon Nov 10, 2025 8:33 am



Viewing all articles
Browse latest Browse all 8013

Trending Articles