Class 12th CBSE CS
Write a Program to create a result in Python and Display it accordingly..
Solution: –
rno = int(input("Enter your roll no :- ")) name = input("Enter your name :- ") s1 = int(input("Enter the mark of Subject 1 :- ")) s2 = int(input("Enter the mark of Subject 2 :- ")) s3 = int(input("Enter the mark of Subject 3 :- ")) s4 = int(input("Enter the mark of Subject 4 :- ")) s5 = int(input("Enter the mark of Subject 5 :- ")) tot = s1+s2+s3+s4+s5 perc = tot//5 print("Roll no :- ",rno) print("Name is :- ",name) print("Total marks :-",tot) print("Percentage is :- ",perc) if perc>=90: print("Grade A") elif perc>=80: print("Grade B") elif perc>=70: print("Grade C") elif perc>=50: print("Grade D") elif perc>=35: print("Grade E") elif perc<35: print("Grade F") else: print("Please Enter proper value......")

Fun & Easy to follow

Works on all devices

Your own Pace

Super Affordable
Popular Videos

UX for Teams
Learn the basics and a bit beyond to improve your backend dev skills.

Chris Matthews
Designer

SEO & Instagram
Learn the basics and a bit beyond to improve your backend dev skills.

Chris Matthews
Designer