Q. Write a code to calculate and display total marks and percentage of a student from a given list storing the marks of a student.
Answer =
lst = eval (input ("Enter the marks of the student : - ")) tmarks = int (input ("Enter the total subjects marks : - ")) sum = 0 for i in lst : sum = sum + i print ("Total marks of student : - ", sum , "Percentage of student : - ", sum / tmarks * 100 )
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )