You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get a E999 SyntaxError: invalid syntax. Got unexpected token whenever structural pattern matching occurs. e.g.:
def http_error(status):
match status:
case 400:
return "Bad request"
case 404:
return "Not found"
case 418:
return "I'm a teapot"
case _:
return "Something's wrong with the internet"
I'm running Python 3.10.9
The text was updated successfully, but these errors were encountered:
I get a
E999 SyntaxError: invalid syntax. Got unexpected token
whenever structural pattern matching occurs. e.g.:I'm running Python 3.10.9
The text was updated successfully, but these errors were encountered: