Come Ramble With Me!

Will you ramble with me?


  • Total voters
    285
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()
 

New posts New threads Active threads

Back
Top Bottom