Python Program to input your percentage and print grade


'''  Percentage(%)           Grade

     91-100                   A

     81-90                    B

     71-80                    C

     0-70                     D   '''

per=int(input('enter perentage'))

if per>=91 and per<=100:

  print('Grade A')

elif per>=81 and per<=90:

  print('Grade B')

elif per>=71 and per<=80:

  print('Grade c')

elif per>=0 and per<=70:

  print('Grade D')

else:

  print('invalid marks')

Comments

Some popular posts

Python Program that computes the net amount of a bank account based a transaction log from console input.

Python Program which will find all such numbers between 1000 and 3000 (both included) such that each digit of the number is an even number.The numbers obtained should be printed in a comma-separated sequence on a single line