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

 

total


Write a program that receives the length of two pieces of fabric in feet and inches (as whole numbers) and returns the total as a String in the format: Feet: 7 Inches: 3


total(5, 11, 1, 4) → 'Feet: 7 Inches: 3'
total(0, 1, 1, 4) → 'Feet: 1 Inches: 5'
total(3, 6, 2, 6) → 'Feet: 6 Inches: 0'

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

def total(first_f,first_i,second_f,second_i):

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