python-CSD-kursu/match.while.py

14 lines
367 B
Python
Raw Normal View History

2023-05-21 11:42:38 +03:00
while True:
cmd = input('CSD>').strip()
2023-05-21 12:21:33 +03:00
match cmd:
case 'delete' | 'remove' 'erase':
print('silme işlemi')
case 'copy':
print('kopyalama işlemi')
case 'rename':
print('isim değiştirme işlemi')
case 'exit' | 'quit':
break
case _:
print('geçersiz komut')