match example 2
This commit is contained in:
parent
ba6c5f32c0
commit
d98fb246b9
14
match.example.2.py
Normal file
14
match.example.2.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
s = input('Bir renk giriniz:')
|
||||
|
||||
match s:
|
||||
case 'kırmızı':
|
||||
print('red')
|
||||
case 'mavi':
|
||||
print('blue')
|
||||
case 'yeşil':
|
||||
print('üç')
|
||||
case 4:
|
||||
print('green')
|
||||
case _:
|
||||
print('another color')
|
||||
|
Loading…
Reference in New Issue
Block a user