PYTHON_PROGRAMMING_CHALLENGES Telegram 41
PEP 622 -- Structural Pattern Matching

Interesting proposal for python 3.10.

The proposed indentation structure is as following:
match some_expression:
case pattern_1:
...
case pattern_2:
...


and example from pep:
match number:
case 0:
print("Nothing")
case 1:
print("Just one")
case 2:
print("A couple")
case -1:
print("One less than nothing")
case 1-1j:
print("Good luck with that...")


https://www.python.org/dev/peps/pep-0622/



tgoop.com/python_programming_challenges/41
Create:
Last Update:

PEP 622 -- Structural Pattern Matching

Interesting proposal for python 3.10.

The proposed indentation structure is as following:

match some_expression:
case pattern_1:
...
case pattern_2:
...


and example from pep:
match number:
case 0:
print("Nothing")
case 1:
print("Just one")
case 2:
print("A couple")
case -1:
print("One less than nothing")
case 1-1j:
print("Good luck with that...")


https://www.python.org/dev/peps/pep-0622/

BY 🇺🇦 Python Programming Сhallenges




Share with your friend now:
tgoop.com/python_programming_challenges/41

View MORE
Open in Telegram


Telegram News

Date: |

Concise The creator of the channel becomes its administrator by default. If you need help managing your channel, you can add more administrators from your subscriber base. You can provide each admin with limited or full rights to manage the channel. For example, you can allow an administrator to publish and edit content while withholding the right to add new subscribers. Click “Save” ; Don’t publish new content at nighttime. Since not all users disable notifications for the night, you risk inadvertently disturbing them. Ng was convicted in April for conspiracy to incite a riot, public nuisance, arson, criminal damage, manufacturing of explosives, administering poison and wounding with intent to do grievous bodily harm between October 2019 and June 2020.
from us


Telegram 🇺🇦 Python Programming Сhallenges
FROM American