id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

bryce.hulett@hotmail.com > format_name_grade
prev  |  next  |  chance

Implement a function that takes a persons name as a string and a grade as a float and returns a string by joining them together in the format below. Round the grade to 1 decimal place.


format_name_grade('Joe', 70.444) → 'Joe has a grade of 70.4'
format_name_grade('Alice', 99.964) → 'Alice has a grade of 100.0'
format_name_grade('Mary', 84.65) → 'Mary has a grade of 84.7'

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

def format_name_grade(name, 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

Difficulty: 200 Post-solution available

Copyright Nick Parlante 2017 - privacy