Answer Key Python Class 7
Answer Key Python Class 7
== Equal to
!= Not equal to
Practical Questions:
Write a program to input Name and Marks of three subjects (Maths, Science,
SST). Calculate the total marks scored and the percentage of student.
(Hint: Let maximum marks for each subject be 50.
∴ Percentage=marks obtained/150*100)
Ans: math=int (input (“Enter marks for Maths (out of 50)”))
Sci= int (input (“Enter marks for Science (out of 50)”))
SST= int (input (“Enter marks for SST (out of 50)”))
TM=math+Sci+SST
Per=(TM/150)*100
print(“Marks scored =”, TM)
print(“Percentage =”, Per)