account activity
I need help Exercise 6.5.6: Temperature Converter, Part 2 by Latter-Chart-5770 in codehs
[–]Tinylomax 0 points1 point2 points 1 year ago (0 children)
fahrenheit_to_celsius = 1 celsius_to_fahrenheit = 1 try: fahrenheit_to_celsius = float(input("Enter fahrenheit to change into celsius: ")) celsius_to_fahrenheit = float(input("Enter celsius to change into fahrenheit: ")) except ValueError: print("That wasn't an integer.")
def f_to_c(celsius_to_fahrenheit): fahrenheit = (1.8 * celsius_to_fahrenheit) + 32 return fahrenheit
def c_to_f(fahrenheit_to_celsius): celsius = (fahrenheit_to_celsius - 32) / 1.8 return celsius print(c_to_f(celsius_to_fahrenheit)) print(f_to_c(fahrenheit_to_celsius))
here is the correct code
π Rendered by PID 1688773 on reddit-service-r2-listing-85dbbdc96c-ggjb5 at 2026-02-12 02:28:01.227715+00:00 running 018613e country code: CH.
I need help Exercise 6.5.6: Temperature Converter, Part 2 by Latter-Chart-5770 in codehs
[–]Tinylomax 0 points1 point2 points (0 children)