forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice > getGrade
prev  |  next  |  chance

If your grade is 90 or above, you get an 'A', 80 or above (B), and so on. Do this for grades from 60 and above. Any grade below a 60 is an F.

getGrade(90) → 'A'
getGrade(80) → 'B'
getGrade(70) → 'C'

...Save, Compile, Run (ctrl-enter)

def getGrade(grade):

Editor font size %:
Shorter output

Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Copyright Nick Parlante 2017 - privacy