Lemon-Drop
Let Your Light Shine ~ Matthew 5:16 🤍✝️
(also the formatting didn't stay correct when I pasted my code, so a lot of it should be indented)Hallo humans! Does there happen to be any coding experts on here (or not so experts...)
This is what I have so far. I'm doing CodeHS. What I need to do is change it so that there are only 2 functions. (currently, I have four) Any helpers? Thanks!
#Change 0C to F:
def farenheit_to_celcius():
print(1.8 * 0 + 32)
return farenheit_to_celcius
farenheit_to_celcius()
# Change 100C to F:
def farenheit_to_celcius():
print(1.8 * 100 + 32)
return farenheit_to_celcius
farenheit_to_celcius()
# Change 40F to C:
def celcius_to_farenheit():
print((40 - 32) /1.8)
return celcius_to_farenheit
celcius_to_farenheit()
# Change 80F to C:
def celcius_to_farenheit():
print((80 - 32)/1.8)
return celcius_to_farenheit
celcius_to_farenheit()