Files
30-seconds-of-code/snippets/python/s/celsius-to-fahrenheit.md
Angelos Chalaris 4d0316a062 Update covers
2023-05-07 22:25:00 +03:00

373 B

title, type, language, tags, unlisted, cover, dateModified
title type language tags unlisted cover dateModified
Celsius to Fahrenheit snippet python
math
true reflection-on-lake 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