Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created January 5, 2021 04:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/aa993bb1b7f1f04cf4c4966bed7ecd5b to your computer and use it in GitHub Desktop.
Save codecademydev/aa993bb1b7f1f04cf4c4966bed7ecd5b to your computer and use it in GitHub Desktop.
Codecademy export
def f_to_c(f_temp):
return (f_temp - 32) * 5/9
f100_in_celsius = f_to_c(100)
print(f100_in_celsius)
def c_to_f(c_temp):
return (c_temp * (9/5) + 32
c0_in_fahrenheit = c_to_f(0)
print(c0_in_fahrenheit)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment