## DEV Community is a community of 872,863 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

# Day 22 of 100DaysOfCode : Simple Program To Find Grade Of Students

Today is my 22th day of #100DaysOfCode and #python. Today I did not learned new thing more. I revised course which is already completed by me from programming for everybody on coursera.

I tried to write some python code in mathematical problem. Did some part of my simple project on basic CSS. And I tried to write simple python program to find out the grade of students from their marks.

My program is given below. In the program we give marks of each subject either integer or float type. After all marks were given we calculate total of marks and find out percentage . After that we can use if else statement to find grade. My program is given below.

``````English = float(input('Please enter the english marks:'))
Nepali = float(input('Please enter the nepali marks:'))
Social = float(input('Please enter the social marks:'))
Computer = float(input('Please enter the computer marks:'))
Mathematics = float(input('Please enter the mathematics marks:'))
Population = float(input('Please enter the population marks:'))
Moral = float(input('Please enter the moral marks:'))
Optmath = float(input('Please enter the optmath marks:'))
Total = English + Nepali + Social + Computer + Mathematics + Population + Moral + Optmath
Percentage = (Total /800)* 100
print('Total Marks = %.2f' %Total)
print('Marks percentage = %.2f' %Percentage)
if(Percentage >= 90):
elif(Percentage >= 80):
elif(Percentage >= 70):
elif(Percentage>= 60):
elif(Percentage >= 40):
else:
print('fail')

``````

After running this program we can get following output.

``````Please enter the english marks:90