match example
This commit is contained in:
parent
eafc72e618
commit
ba6c5f32c0
15
match.example.py
Normal file
15
match.example.py
Normal 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')
|
Loading…
Reference in New Issue
Block a user