Please ignore secret bonuses. Secret tests do NOT award bonus. Max hw grade is 30+2 bonus efficiency

Do you need help?

Notice Board

Per partecipare al corso di Fondamenti di programmazione 2023-24 loggatevi e attivatelo nella vostra pagina dei corsi preferiti. A quel punto il corso appare nel menù personale cliccando sul proprio avatar. Per i materiali degli anni precedenti seguite lo stesso metodo.

To join the Programming/Lab 2023-24 course, log-on and select it on the my courses page. It will appear on the personal menu of your avatar. For earlier years use the same method.

Version of Python - match give syntax error

matteo_b (950 points)
14 27 33
in HW6 by (950 points)

What version of python is used on the vm?
I obtained this error...

Not tested because of syntax errors in the program.
  File "program01.py", line 244
    match key=
          ^
SyntaxError= invalid syntax

97 views

1 Answer

AL1990 (28120 points)
3 6 142
by (28.1k points)
"Python 3.9 (tests are performed on version 3.9 - do not use features from later versions)"

Python match-case statement was introduced in Python 3.10