From f93b1fa403fd727f0acfcd3daf908ea96e7fca7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mert=20G=C3=B6r?= Date: Sun, 21 May 2023 11:42:38 +0300 Subject: [PATCH] match while example --- match.while.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 match.while.py diff --git a/match.while.py b/match.while.py new file mode 100644 index 0000000..3bf759d --- /dev/null +++ b/match.while.py @@ -0,0 +1,13 @@ +while True: + cmd = input('CSD>').strip() + 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!')