DAY 18(CODE INFINITY)

As I said  we write code for some daily basis things so Today I am giving you a code where you can provide your marks and it will give you grade according to marks in a test of maximum marks(100) also we will write code for all subjects and then according to percentage it will provide grades this we will write in next blog  so Let's get started...

#Grade in test of Maximum marks 100

totalmarks=int(input("Enter your marks: "))

if (totalmarks>=90 and totalmarks<=100):

  print("Grade = Excellent")

elif (totalmarks>=80 and totalmarks<=90):

  print("Grade = A")

elif (totalmarks>=70 and totalmarks<=80):

  print("Grade = B")

elif (totalmarks>=60 and totalmarks<=70):

  print("Grade = C")

elif (totalmarks>=50 and totalmarks<=60):

  print("Grade = D")

else:

  print("Grade = F")

Screenshot of repel:


Link of repel:

https://replit.com/@shwetaantil97/grades-according-to-marks



Comments

Lusia said…
Amiable Content 👍

Popular posts from this blog