match example

This commit is contained in:
Mert Gör 🇹🇷 2023-05-21 11:17:57 +03:00
parent eafc72e618
commit ba6c5f32c0
No known key found for this signature in database
GPG Key ID: 2100A876D55B39B9

15
match.example.py Normal file
View File

@ -0,0 +1,15 @@
a = int(input('bir değer giriniz:'))
match a:
case 1:
print('bir')
case 2:
print('iki')
case 3:
print('üç')
case 4:
print('dört')
case 5:
print('beş')
case _:
print('hiçbiri')