how would i search my dictionary to see If child score is greater or equal than 100 (they should only get 8 presents), between 50 and 100 (get 5) and below 50 (get 2)
People={"Dan":22,
"Matt":54,
"Harry":78,
"Bob":91}
def displayMenu():
print("1. Add presents")
print("2. Show score of child")
print("3. Add Student")
print("4. Delete students")
print("5. Show text File: ")
print("6. Quit")
choice = int(input("Enter your choice : "))
while 6< choice or choice< 1:
choice = int(input("Invalid. Re-enter your choice: "))
return choice
def addpresents():
name= input('Enter child for their score: ')
if name in People:
print(People[name])
option = displayMenu()
while option != 6:
if option == 1:
addpresents()
if option == 3:
addstudents()
if option == 4:
delete()
if option== 5:
txtfile()
elif option == 2:
print("Program terminating")
option = displayMenu()