python-CSD-kursu/python-temel/match.example.2.py

15 lines
248 B
Python
Raw Normal View History

2023-05-21 11:32:51 +03:00
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')