TORONTO KIDS COMPUTER CLUB | Summer Camp 2021 Python Homework 13:30 – week 05 1-3
19772
post-template-default,single,single-post,postid-19772,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.8.0,vc_responsive

Summer Camp 2021 Python Homework 13:30 – week 05 1-3

05 Aug Summer Camp 2021 Python Homework 13:30 – week 05 1-3

Question:
A school has following rules for grading system:

  • Below 25 – F
  • 25 to 45 – E
  • 46 to 50 – D
  • 51 to 59 – C
  • 61 to 80 – B
  • Above 80 – A

Write a program to ask user to enter marks and print the corresponding grade.

Sample input 1:
Marks: 95

Sample output 1:
Grade: A

Sample input 2:
Marks: 50

Sample output 2:
Grade: D
No Comments

Sorry, the comment form is closed at this time.