Notlar={}
def Menu():
while True:
secim=int(input(" 1. Not gir \n 2. Not Guncelle \n 3. Not sil. \n 4. Not Goruntule \n 5. Çıkış"))
if secim == 1:
notGir()
elif secim == 2:
notGuncelle()
elif secim == 3:
notSil()
elif secim == 4:
notGoruntule()
elif secim == 5:
break
else:
print("Yanlış seçim yaptınız tekrar seçim yapınız.")
def notGir():
ogrn=input("Öğrenci Numarasını Giriniz: ")
ogrNot=float(input("Öğrenci Notunu Giriniz: "))
Notlar[ogrn]=ogrNot
print(Notlar)
def notGuncelle():
ogrn=input("Öğrenci Numarasını Giriniz: ")
ogrNot=float(input("Öğrenci Notunu Giriniz: "))
Notlar[ogrn]=ogrNot
def notSil():
ogrn=input("Öğrenci Numarasını Giriniz: ")
del Notlar[ogrn]
def notGoruntule():
ogrNot=float(input("Öğrenci Notunu Giriniz: "))
for ogrenciNumarasi,ogrecininNotu in Notlar.items():
if ogrecininNotu> ogrNot:
print(ogrenciNumarasi," Numaralı örencinin notu ",ogrecininNotu)
print("Not programına hoş geldiniz")
Menu()
print("Hoçcakalın")