Untitled Document
Untitled Document
import mysql.connector as ms
from datetime import datetime
# MODULE TO EXIT
def exit_program():
exit_choice = input("Are you sure you want to exit? (yes/no): ")
if exit_choice.lower() == "yes":
mycursor.close()
mydb.close()
quit()
else:
print("Continuing with the menu...")
if choice == 1:
new_student()
elif choice == 2:
display_students()
elif choice == 3:
update_student()
elif choice == 4:
marks_student()
elif choice == 5:
report_card()
elif choice == 6:
report_card(input("Enter Admission No: "))
elif choice == 7:
exit_program()
elif choice == 0:
help_me()
else:
print("Invalid input. Please try again.")