Ohh
Ohh
#module 1
print("\t\
t--------------------------------------------------------------------------")
print("\t\t\t\tWELCOME TO GYM")
print("\t\
t--------------------------------------------------------------------------")
p=input("Enter password: ")
#second screen
if p=="9833":
print("Entry Successfull!")
while True:
print("\t\
t--------------------------------------------------------------------------")
print("GYM")
print("\t\
t--------------------------------------------------------------------------")
print("1:Admission Details")
print("2:Membership")
print("3:graphs")
print("4:misc")
print("5:Exit")
print("\t\
t---------------------------------------------------------------------- ---")
choice=int(input("Enter a choice: "))
if choice==1:
print("1:all admisions")
print("2:expired admisions")
O=int(input("Select optiion: "))
if O==1:
print(tabulate(data, headers = 'keys', tablefmt = 'psql'))
elif O==2:
print(1)
elif choice==2:
print("\t\
t---------------------------------------------------------------------- ---")
print("MEMBERSHIP TYPE ")
print("\t\
t---------------------------------------------------------------------- ---")
print("1.New Membership")
print("2.renewal")
A=int(input("Select Membership Type: "))
if A==1:
mid=str(input("Enter Customer ID:"))
n1=str(input("Enter Customer Name:"))
pno=str(input("Enter Phone#:"))
date=str(input("Select date:"))
pkge=str(input("package chosen:"))
paid=str(input("payment:"))
new_row={'ID':mid,'NAME':n1,'PHONE':pno,'JOIN':date,'PACKAGE':pkge,'AMOUNT':paid}
data.loc[len(data)]= new_row
data.to_csv(r'C:\\Users\\USER\\Desktop\\rename\\Book1.csv')
elif A==2:
r=int(input("enter customer ID:"))
m=str(input("renewed for:"))
else:
print("choose valid option")
elif choice==3:
print("choose graph")
print("1.monthly revenue")
print("2.customers per month")
print("3.equipments")
C=int(input("choose graph:"))
if C==1:
print("1")
elif C==2:
print("2")
elif C==3:
print("3")
elif choice==4:
print("4")
elif choice==5:
print("5")
else:
print("Choose a valid option")