Page 440 - Computer Science V2.0 Class 11
P. 440
points()
else:
return
def display():
'''
Objective: To display data of schools
Input Parameters: None
Return Value: None
'''
for school in pointsTally:
print(school, pointsTally[school])
menu()
def points():
'''
Objective: To calculate and display points
Input Parameters: None
Return Value: None
'''
school = input("Enter School Name : ")
if school in pointsTally.keys():
print("Congratulations!! You have scored ", pointsTally[school][2], "points")
else:
print("Sorry .. Your school is not registered")
menu()
def accept():
'''
Objective: To accept data
Input Parameters: None
Return Value: None
'''
schoolName = input("Enter the School Name : ")
choice = 1
while choice == 1:
eventName = input("Enter the Event Name : ")
if eventName not in events:
print("Sorry... we are not hosting this event.")
426 Touchpad Computer Science (Ver. 2.0)-XI

