Files
30-seconds-of-code/snippets/fahrenheit_to_celsius.md
Isabelle Viktoria Maciohsek cbc78ee450 Bake dates into snippets
2021-06-13 19:38:10 +03:00

359 B

title, tags, unlisted, firstSeen, lastUpdated
title tags unlisted firstSeen lastUpdated
fahrenheit_to_celsius math,beginner true 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