python-CSD-kursu/python/match.py

14 lines
243 B
Python
Raw Normal View History

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')