{"id":10352,"date":"2021-09-30T11:00:25","date_gmt":"2021-09-30T05:30:25","guid":{"rendered":"https:\/\/python-programs.com\/?p=10352"},"modified":"2021-11-22T18:35:32","modified_gmt":"2021-11-22T13:05:32","slug":"python-program-to-take-in-the-marks-of-5-subjects-and-display-the-grade","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-take-in-the-marks-of-5-subjects-and-display-the-grade\/","title":{"rendered":"Python Program to Take in the Marks of 5 Subjects and Display the Grade"},"content":{"rendered":"

Have you mastered basic programming topics of java and looking forward to mastering advanced topics in a java programming language? Go with these ultimate Advanced java programs examples with output<\/a> & achieve your goal in improving java coding skills.<\/p>\n

Given the marks of 5 subjects of the student, the task is to display the grade of the student based on the marks in<\/p>\n

Python.<\/p>\n

Examples:<\/strong><\/p>\n

Example1:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Enter first subject marks as integer = 75\r\nEnter second subject marks as integer = 79\r\nEnter third subject marks as integer = 65\r\nEnter fourth subject marks as integer = 82\r\nEnter fifth subject marks as integer = 63<\/pre>\n

Output:<\/strong><\/p>\n

Average of 5 marks = 72.8 Grade =C<\/pre>\n

Example2:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Enter first subject marks as integer = 63\r\nEnter second subject marks as integer = 19\r\nEnter third subject marks as integer = 99\r\nEnter fourth subject marks as integer = 85\r\nEnter fifth subject marks as integer = 73<\/pre>\n

Output:<\/strong><\/p>\n

Average of 5 marks = 67.8 Grade =D<\/pre>\n

Program to Take in the Marks of 5 Subjects and Display the Grade in Python<\/h2>\n

There are several ways to calculate the grade of the student based on the marks of 5 subjects in Python some of them are:<\/p>\n