Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python match case example

match subject:
    case <pattern_1>:
        <action_1>
    case <pattern_2>:
        <action_2>
    case <pattern_3>:
        <action_3>
    case _:
        <action_wildcard>
Source by www.pythonpool.com #
 
PREVIOUS NEXT
Tagged: #python #match #case
ADD COMMENT
Topic
Name
5+1 =