Page 57 - IPP-12-2024
P. 57
elif ch3==2:
print(result.tail())
elif ch3==3:
n=int(input("Enter how many records you want
to display from the top"))
print(result.head(n))
elif ch3==4:
n=int(input("Enter how many records you want
to display from the bottom"))
print(result.tail(n))
elif ch3==5:
st=input("Enter the subject name for which you
want to see the details")
print(result.loc[st])
elif ch3==6:
print("Results of XYZ school for the session
2018-19")
print(result)
elif ch3==7:
break
elif ch == 4:
print("Working on Records Menu")
print("1. Insert a specific subject Detail")
print("2. Delete a specific subject Detail")
print("3. Update a specific subject detail")
print("4. Exit")
choice = int(input("Enter choice: "))
if choice == 1 or choice == 3:
subject_name = input("Enter subject name: ")
data = {"Number of Students Appeared":
int(input("Enter number of students appeared: ")),
"Highest Marks": int(input("Enter
highest marks obtained: ")),