You are on page 1of 1

if len(record) >= 1:

print("PRESS 5 : TO EXIT SYSTEM")

inp = input("Enter your choice") # Getting user input

if int(inp) == 1:

new_student() # calling new_student() function

elif int(inp)==2 and len(record) >= 1:

delete_student() # Calling delete_student() function

elif int(inp)==3 and len(record) >= 1 :

update_student() # Calling update_student() function

elif int(inp)==4 and len(record) >= 1:

display_student() # Calling display_student() function

elif int(inp)==5 and len(record) >= 1:

exit_system()

else:

print("Invalid Choice, Try again!")

You might also like