Write a code to calculate and …
CBSE, JEE, NEET, CUET
Question Bank, Mock Tests, Exam Papers
NCERT Solutions, Sample Papers, Notes, Videos
Related Questions
Posted by Syedali Fathima 2 weeks, 2 days ago
- 1 answers
Posted by Manoj Kumar Manoj Kumar 2 months ago
- 0 answers
Posted by Rada Rada 3 months, 3 weeks ago
- 2 answers
Posted by Prawar Narang 1 month, 1 week ago
- 1 answers
Posted by Gaya Thri 2 months, 2 weeks ago
- 1 answers
Posted by Priya Shukla 1 week, 6 days ago
- 1 answers
Posted by Shakthi Shakthi 3 months ago
- 0 answers
Posted by Kandeepan Jothivel 1 month, 2 weeks ago
- 2 answers
myCBSEguide
Trusted by 1 Crore+ Students
Test Generator
Create papers online. It's FREE.
CUET Mock Tests
75,000+ questions to practice only on myCBSEguide app
Preeti Dabral 2 years, 11 months ago
n = int(input("Enter the number of subjects: "))
l = list()
for i in range(n):
x = float(input("Enter the marks: "))
l.append(x)
print(l, "is the given list of marks.")
print()
tot = int(input("Enter the total marks of the test: "))
ntot = n*tot
ftot = sum(l)
print("Total marks: ", ftot)
print("Percentage: ", (ftot/ntot)*100)
0Thank You