Sie sind auf Seite 1von 6

roll=[]

name=[]
age=[]
dob=[] #DOB=DATE OF BIRTH
address=[]
MN=[] #MN=MOTHER NAME
FN=[] #FN=FATHER NAME
BT=[] #BT=BELONG TO
AOL=[] #AOL=AIM OF LIFE
EA=[] #EI=EMAIL ADDRESS

print("MENU")
print("-"*222)
print("00)DISPLAY THE MENU")
print("1)Dsplay all biodata")
print("2)Adding a biodata")
print("3)Removing a biodata")
print("4)Find by roll number")
print("5)Find by name ")
print("6)Find by age")
print("7)Find by dob")
print("8)Find by address")
print("9)Find by mother name")
print("10)Find by father name")
print("11)Find by belonging area")
print("12)Find by aim of life")
print("13)Find by email address")
print("14)Edit any information")
print("0)EXIT")
ch="1"
while(ch!="0"):
print("-"*222)
ch=input("enter your choice")
if(ch=="00"):
print("MENU")
print("-"*222)
print("00)DISPLAY THE MENU")
print("1)Dsplay all biodata")
print("2)Adding a biodata")
print("3)Removing a biodata")
print("4)Find by roll number")
print("5)Find by name ")
print("6)Find by age")
print("7)Find by dob")
print("8)Find by address")
print("9)Find by mother name")
print("10)Find by father name")
print("11)Find by belonging area")
print("12)Find by aim of life")
print("13)Find by email address")
print("14)Edit any information")
print("0)EXIT")
elif(ch=="1"):
if(name==[]):
print("There is no biodata")
else:
for x in range(len(name)):
print("-"*20)
print("Roll number :",roll[x])
print("Name :",name[x])
print("Age :",age[x])
print("Date of birth :",dob[x])
print("Address :",address[x])
print("mother name :","Ms",MN[x])
print("father name :","Mr",FN[x])
print("Aim of the life :",AOL[x])
print("Email address :",EA[x])
elif(ch=="2"):
roll1=input("Enter the roll number ")
if(roll1 not in roll):
name1=input("Enter the name ")
age1=input("Enter the age ")
dob1=input("Enter the date of birth ")
address1=input("Enter the adress ")
MN1=input("enter the Mother name")
FN1=input("enter the father name")
BT1=input("enter from where he belonged ")
AOL1=input("enter aim of your life")
EA1=input("enter the your email address")

roll+=[roll1]
name+=[name1]
age+=[age1]
dob+=[dob1]
address+=[address1]
MN+=[MN1]
FN+=[FN1]
BT+=[BT1]
AOL+=[AOL1]
EA+=[EA1]

else:
print("ERROR NO TWO CHARECTER HAVE SAME ROLL.no")
elif(ch=="3"):
re=input("Enter the name ")
for x in range(len(name)):
if(name[x].lower()==re.lower()):
break
roll.remove(roll[x])
name.remove(name[x])
age.remove(age[x])
dob.remove(dob[x])
address.remove(address[x])
elif(ch=="4"):
fi=input("enter the roll number ")
for x in range(len(roll)):
if(roll[x]==fi):
break
print("-"*20)
print("Roll number :",roll[x])
print("Name :",name[x])
print("Age :",age[x])
print("Date of birth :",dob[x])
print("Adress :",address[x])
print("mother name :","Ms",MN[x])
print("father name :","Mr",FN[x])
print("Belong to :",BT[x])
print("Aim of the life :",AOL[x])
print("Email address :",EA[x])
elif(ch=="5"):
fi=input("enter the name ")
file=[]
for x in range(len(roll)):
if(name[x]==fi):
file+=[x]
for x in range(len(file)):
print("-"*20)
print("Roll number :",roll[file[x]])
print("Name :",name[file[x]])
print("Age :",age[file[x]])
print("Date of birth :",dob[file[x]])
print("Adress :",address[file[x]])
print("mother name :","Ms",MN[file[x]])
print("father name :","Mr",FN[file[x]])
print("Belong to :",BT[file[x]])
print("Aim of the life :",AOL[file[x]])
print("Email address :",EA[file[x]])

elif(ch=="6"):
fi=input("enter the age ")
file=[]
for x in range(len(roll)):
if(age[x]==fi):
file+=[x]
for x in range(len(file)):
print("-"*20)
print("Roll number :",roll[file[x]])
print("Name :",name[file[x]])
print("Age :",age[file[x]])
print("Date of birth :",dob[file[x]])
print("Adress :",address[file[x]])
print("mother name :","Ms",MN[file[x]])
print("father name :","Mr",FN[file[x]])
print("Belong to :",BT[file[x]])
print("Aim of the life :",AOL[file[x]])
print("Email address :",EA[file[x]])

elif(ch=="7"):
fi=input("enter the date of birth ")
file=[]
for x in range(len(roll)):
if(dob[x]==fi):
file+=[x]
for x in range(len(file)):
print("-"*20)
print("Roll number :",roll[file[x]])
print("Name :",name[file[x]])
print("Age :",age[file[x]])
print("Date of birth :",dob[file[x]])
print("Adress :",address[file[x]])
print("mother name :","Ms",MN[file[x]])
print("father name :","Mr",FN[file[x]])
print("Belong to :",BT[file[x]])
print("Aim of the life :",AOL[file[x]])
print("Email address :",EA[file[x]])
elif(ch=="8"):
fi=input("enter the address ")
file=[]
for x in range(len(roll)):
if(address[x]==fi):
file+=[x]
for x in range(len(file)):
print("-"*20)
print("Roll number :",roll[file[x]])
print("Name :",name[file[x]])
print("Age :",age[file[x]])
print("Date of birth :",dob[file[x]])
print("Adress :",address[file[x]])
print("mother name :","Ms",MN[file[x]])
print("father name :","Mr",FN[file[x]])
print("Belong to :",BT[file[x]])
print("Aim of the life :",AOL[file[x]])
print("Email address :",EA[file[x]])

elif(ch=="9"):
fi=input("enter the mother name ")
file=[]
for x in range(len(roll)):
if(MN[x]==fi):
file+=[x]
for x in range(len(file)):
print("-"*20)
print("Roll number :",roll[file[x]])
print("Name :",name[file[x]])
print("Age :",age[file[x]])
print("Date of birth :",dob[file[x]])
print("Adress :",address[file[x]])
print("mother name :","Ms",MN[file[x]])
print("father name :","Mr",FN[file[x]])
print("Belong to :",BT[file[x]])
print("Aim of the life :",AOL[file[x]])
print("Email address :",EA[file[x]])
elif(ch=="10"):
fi=input("enter the father name ")
file=[]
for x in range(len(roll)):
if(FN[x]==fi):
file+=[x]
for x in range(len(file)):
print("-"*20)
print("Roll number :",roll[file[x]])
print("Name :",name[file[x]])
print("Age :",age[file[x]])
print("Date of birth :",dob[file[x]])
print("Adress :",address[file[x]])
print("mother name :","Ms",MN[file[x]])
print("father name :","Mr",FN[file[x]])
print("Belong to :",BT[file[x]])
print("Aim of the life :",AOL[file[x]])
print("Email address :",EA[file[x]])
elif(ch=="11"):
fi=input("enter the belong area ")
file=[]
for x in range(len(roll)):
if(BT[x]==fi):
file+=[x]
for x in range(len(file)):
print("-"*20)
print("Roll number :",roll[file[x]])
print("Name :",name[file[x]])
print("Age :",age[file[x]])
print("Date of birth :",dob[file[x]])
print("Adress :",address[file[x]])
print("mother name :","Ms",MN[file[x]])
print("father name :","Mr",FN[file[x]])
print("Belong to :",BT[file[x]])
print("Aim of the life :",AOL[file[x]])
print("Email address :",EA[file[x]])
elif(ch=="12"):
fi=input("enter the aim of life ")
file=[]
for x in range(len(roll)):
if(address[x]==fi):
file+=[x]
for x in range(len(file)):
print("-"*20)
print("Roll number :",roll[file[x]])
print("Name :",name[file[x]])
print("Age :",age[file[x]])
print("Date of birth :",dob[file[x]])
print("Adress :",address[file[x]])
print("mother name :","Ms",MN[file[x]])
print("father name :","Mr",FN[file[x]])
print("Belong to :",BT[file[x]])
print("Aim of the life :",AOL[file[x]])
print("Email address :",EA[file[x]])
elif(ch=="13"):
fi=input("enter the email address ")
file=[]
for x in range(len(roll)):
if(address[x]==fi):
file+=[x]
for x in range(len(file)):
print("-"*20)
print("Roll number :",roll[file[x]])
print("Name :",name[file[x]])
print("Age :",age[file[x]])
print("Date of birth :",dob[file[x]])
print("Adress :",address[file[x]])
print("mother name :","Ms",MN[file[x]])
print("father name :","Mr",FN[file[x]])
print("Belong to :",BT[file[x]])
print("Aim of the life :",AOL[file[x]])
print("Email address :",EA[file[x]])
elif(ch=="14"):
roll2=input("enter the roll number ")
if(roll2 in roll):
for x in range(len(roll)):
if(roll[x]==roll2):
break
ex="0"
while(ex!="00"):
print("-"*20)
print("Roll number :",roll[x])
print("Name :",name[x])
print("Age :",age[x])
print("Date of birth :",dob[x])
print("Address :",address[x])
print("mother name :","Ms",MN[x])
print("father name :","Mr",FN[x])
print("Aim of the life :",AOL[x])
print("Email address :",EA[x])
print("00)EXIT")
p=input("enter your problem ")
if(p.upper()=="roll number".upper()):
new=input("enter the new roll number")
roll[x]=new
elif(p.upper()=="name".upper()):
new=input("enter the new name")
name[x]=new
elif(p.upper()=="age".upper()):
new=input("enter the new age")
age[x]=new
elif(p.upper()=="Date of birth".upper()):
new=input("enter the new Date of birth")
dob[x]=new
elif(p.upper()=="address".upper()):
new=input("enter the new address")
address[x]=new
elif(p.upper()=="father name".upper()):
new=input("enter the new mother name")
MN[x]=new
elif(p.upper()=="father name".upper()):
new=input("enter the new father name")
FN[x]=new
elif(p.upper()=="aim of the life".upper()):
new=input("enter the new aim of the life")
AOL[x]=new
elif(p.upper()=="email address".upper()):
new=input("enter the new email address")
EA[x]=[p]

else:
print("program is incomplete")

Das könnte Ihnen auch gefallen