Files
30-seconds-of-code/snippets/celsius_to_fahrenheit.md
Isabelle Viktoria Maciohsek 448cb3b532 Update snippet titles
2022-02-10 22:09:42 +02:00

359 B

title, tags, unlisted, firstSeen, lastUpdated
title tags unlisted firstSeen lastUpdated
Celsius to Fahrenheit math,beginner true 2020-04-05T12:29:03+03:00 2021-01-04T12:47:04+02:00

Converts Celsius to Fahrenheit.

  • Follow the conversion formula F = 1.8 * C + 32.
def celsius_to_fahrenheit(degrees):
  return ((degrees * 1.8) + 32)
celsius_to_fahrenheit(180) # 356.0