Page 58 - IPP-12-2024
P. 58
"Average Marks": float(input("Enter
average marks obtained: ")),
"Number of A1's": int(input("Enter
number of A1's: ")),
"Number ofA2's" :int(input("Enter
number of A2's")),
"Percentage of A1 and A2
":int(input("Enter percentage of A1 and A2's")),
"Number of B1's":int(input("Enter
number of B1's")),
"Number of B2's":int(input("Enter
number of B2's")) ,
"Number of C1's":int(input("Enter
number of C1's")),
"Number of C2's":int(input("Enter
number of C2's")) ,
"Number of D1's":int(input("Enter
number of D1's")) ,
"Number of D2's":int(input("Enter
number of D2's")),
"Number of E's":int(input("Enter
number of E's"))
}
column_names = ['Appeared', 'Highest',
'Average', 'A1', 'A2', 'Percentage', 'B1', 'B2', 'C1', 'C2',
'D1', 'D2','E']
print(data)
if len(data) == len(column_names):
if choice == 1:
result.loc[subject_name] =
list(data.values())
print("Data successfully inserted
for", subject_name)
elif choice == 3:
result.loc[subject_name] =
list(data.values())