88. Problem to calculate marks percentage from the given list

In this Python list program, we will take a user input as a list and calculate marks percentage from a given mark list, the max mark for each item is 100 with the help of the below-given steps.

Calculate marks percentage:

Steps to solve the program
  1. Take a list containing marks as input.
  2. Calculate the percentage based on the marks in the list using general formula.
  3. Print the output. 
				
					#Input list
list1 = [80, 50, 70, 90, 95]

#Printing output
print("Percentage: ", (sum(list1)/500)*100)
				
			

Output :

				
					Percentage:  77.0
				
			

Related Articles

Calculate bill per fruit purchased from a list

Get the list of palindrome strings

Leave a Comment