close
0

What is the syntactical equivalent to switch/case in Python? [duplicate]

avatar
asked 27-08-2022

1 Answers


0

Use

match value:
    case condition:
        action(s)
    ...
avatar
answered 27-08-2022