python-CSD-kursu/match.while.2.py

13 lines
404 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

while True:
cmd = input('CSD>').strip()
match cmd:
case 'delete' | 'remove' | 'erase' as x:
print(f'silme işlemi "(x)" komutu ile yapılıyor')
case 'copy':
print('kopyalama işlemi')
case 'rename':
print('isim değiştirme işlemi')
case 'exit' | 'quit':
break
case _:
print('geçersiz komut!')