Write a python to accept marks of four subjects and display their total and percentage
Answers
Answered by
1
Answer:
Explanation:
marks=[int(x) for x in input("enter four subject marks").split( )]
total=0
for i in marks:
total+=i
percentage=total*100/400
print(f"total:{total}, Percentage:{percentage}")
Similar questions