Files
30-seconds-of-code/snippets/fahrenheit_to_celsius.md
2022-06-09 13:13:34 +03:00

408 B

title, tags, expertise, unlisted, cover, firstSeen, lastUpdated
title tags expertise unlisted cover firstSeen lastUpdated
Fahrenheit to Celsius math beginner true blog_images/last-light.jpg 2020-04-05T12:29:03+03:00 2021-01-04T12:47:04+02:00

Converts Fahrenheit to Celsius.

  • Follow the conversion formula C = (F - 32) * 5 / 9.
def fahrenheit_to_celsius(degrees):
  return ((degrees - 32) * 5 / 9)
fahrenheit_to_celsius(77) # 25.0