Computer Science, asked by sonakshisangal09, 3 days ago

To input the roll number, name and marks in 5 subjects of a student, write a program to calculate the total and percentage marks of the student​

Answers

Answered by shubh17240
3

Answer:

Heyaa mate

Hope it helps u

Explanation:

roll = input("Enter your roll no : ")

name = input("Enter your name : ")

marks = []

totalMarks = input("Enter maximum marks")

for i in range(5):

mark = input("Enter marks in "+str(i+1)+"th subject")

marks.append(mark)

percent = round(sum(marks)*100/totalMarks,2)

tm = sum(marks)

print("Name of the student : ",name)

print("roll no: ",roll)

print("percent obtained: ",percent)

print("marks obtained: ",tm, " / ",totalMarks)

Similar questions