0
How to create mark list using python
5 Réponses
+ 1
Philipos Hailu please post your attempt so we as a community can see what you have done.
and follow the 8 rules for getting help from the community
https://www.sololearn.com/Blog/38/8-simple-rules-to-get-help-from-the-community
0
Have you tried researching the topic before asking here ? This sounds more like homework and a quick code answer without understanding the code script would not be in your best interest.
Thanks and happy coding...
0
It's not a home work I tried many times but result is error
0
sub1 = int ( input( "Enter marks of the first subject: " ) )
sub2 = int ( input( "Enter marks of the second subject: " ) )
sub3 = int ( input( "Enter marks of the third subject: " ) )
sub4 = int ( input( "Enter marks of the fourth subject: " ) )
sub5 = int ( input( "Enter marks of the fifth subject: " ) )
avg= ( sub1+sub2+sub3+sub4+sub4 ) / 5
if ( avg>= 90 ) :
print( "Grade: A" )
elif ( avg >= 80 &avg < 90 ) :
print( "Grade: B" )
elif ( avg >= 70 &avg < 80 ) :
print( "Grade: C" )
elif ( avg >= 60 &avg < 70 ) :
print( "Grade: D" )
else :
print( "Grade: F" )