CSD Shell example and modified add_list_to_set Page 133 match

This commit is contained in:
Mert Gör 🇹🇷 2024-06-17 22:08:45 +03:00
parent d931b7df39
commit 97aacc7384
Signed by: hwpplayer1
GPG key ID: 03E547D043AB6C8F
3 changed files with 19 additions and 7 deletions

View file

@ -1,3 +1,7 @@
2024-06-17 hwpplayer1 <hwpplayer1@debian>
* python/Python.pdf: CSD (PSD) shell example written page 133
2024-06-09 Mert Gör <mertgor@masscollabs.xyz>
* python/Python.pdf: continue Deyimi sayfa 132

View file

@ -1,9 +1,3 @@
"""
Experimental code written by Mert Gör(hwpplayer1)
GPLv3-or-later
"""
mert = set('mert')
gor = ['g','o','r']
mert.update(gor)
print(mert)
print(gor,mert)

14
python/psd-shell.py Normal file
View file

@ -0,0 +1,14 @@
while True:
cmd = input('PSD>').strip()
if cmd == '':
continue
if cmd == 'dir':
print('dir command')
elif cmd == 'del':
print('del command')
elif cmd == 'copy':
print('copy command')
elif cmd == 'exit':
break
else:
print('bad command!')