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

 

fahrenheitToCelsius


fahrenheitToCelsius(temp) -- given a float temperature temp in degrees Fahrenheit, return the corresponding temperature in degrees Celsius. The algorithm to convert between Fahrenheit and Celsius is: deduct 32, then multiply by 5, then divide by 9.


fahrenheitToCelsius(32.0) → 0.0
fahrenheitToCelsius(230.0) → 110.0
fahrenheitToCelsius(-40.0) → -40.0

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

def fahrenheitToCelsius(temp):

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