Match statement in python problem

Touchdesigner is using Python 3.7 and in 3.1 the match statement was introduced. I cannot however get It working.

Consider this example

mycolor = 'Blue'
match mycolor.lower():
   case 'blue':
      print('Blue sea')
   case 'green':
      print('Green valley')
   case 'yellow':
      print('Yellow sun')
   case _:
      print('could not guess')

I get syntax error: invalid syntax

You dropped a 0 there, it is 3.10 that matchCases got introduced.

OK now it makes sense that it doesn’t work