Update python.md

adds missing match case section
This commit is contained in:
Jibril Tapiador authored and GitHub committed 2023-07-28 08:31:35 +08:00
1 parent 4e40e8e334
commit a24f2278a1
1 file changed
+13
+13
View File
@@ -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")
```