forked from werhereitacademy/Python_Modul_Week_2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhoofd.py
More file actions
79 lines (75 loc) · 2.23 KB
/
hoofd.py
File metadata and controls
79 lines (75 loc) · 2.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
from boek_transacties import *
from leden_transacties import *
from tijd import *
def leden_menu():
while True:
print("\n--- ÜYELİK İŞLEMLERİ ---")
print("1. Tüm üyeleri listele")
print("2. Üye ekle")
print("3. Üye ara")
print("4. Üye sil")
print("5. Üyeye kitap ödünç ver")
print("6. İade edilen kitabı al")
print("7. Bir üyenin aldığı kitapları listele")
print("8. Geri (ana menü)")
sec = input("Seçiminiz: ")
if sec == "1":
uyeleri_listele()
elif sec == "2":
uye_ekle()
elif sec == "3":
uye_ara()
elif sec == "4":
uye_sil()
elif sec == "5":
kitap_odunc_ver()
elif sec == "6":
kitap_iade_al()
elif sec == "7":
uye_aldiklarini_listele()
elif sec == "8":
break
else:
print("Geçersiz seçim.")
def boeken_menu():
while True:
print("\n--- KİTAP İŞLEMLERİ ---")
print("1. Tüm kitapları listele")
print("2. Kitap ekle")
print("3. Kitap güncelle")
print("4. Kitap ara (kısmi eşleşme destekli)")
print("5. Kitap sil")
print("6. Geri (ana menü)")
sec = input("Seçiminiz: ")
if sec == "1":
boek_lijst()
elif sec == "2":
boek_toevoegen()
elif sec == "3":
boek_bijwerken()
elif sec == "4":
boek_zoeken()
elif sec == "5":
boek_verwijderen()
elif sec == "6":
break
else:
print("Geçersiz seçim.")
def hoofd_menu():
while True:
print("\n=== KÜTÜPHANE SİSTEMİ ===")
print("1. Üyelik işlemleri")
print("2. Kitap işlemleri")
print("3. Çıkış")
sec = input("Seçiminiz: ")
if sec == "1":
leden_menu()
elif sec == "2":
boeken_menu()
elif sec == "3":
print("Programdan çıkılıyor...")
break
else:
print("Geçersiz seçim.")
if __name__ == "__main__":
hoofd_menu()