Answer the question
In order to leave comments, you need to log in
match python 3.9.1 invalid syntax error?
Python 3.9.1
What is the correct way to use match?
All examples on the Internet do not want to work correctly.
Gives all the time:
^
SyntaxError: invalid syntax
quit_flag = False
match quit_flag:
case True:
print("Quitting")
exit()
case False:
print("System is on")
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question