mirror of
https://github.com/Fechin/reference.git
synced 2026-11-21 13:34:06 +03:00
Update python.md
adds missing match case section
This commit is contained in:
1 parent
4e40e8e334
commit
a24f2278a1
1 file changed
+13
@@ -815,6 +815,19 @@ else:
|
||||
print("Value is True")
|
||||
```
|
||||
|
||||
### match case
|
||||
|
||||
```python
|
||||
x = 1
|
||||
match x:
|
||||
case 0:
|
||||
print("zero")
|
||||
case 1:
|
||||
print("one")
|
||||
case _:
|
||||
print("multiple")
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user