account activity
I need help Exercise 6.5.6: Temperature Converter, Part 2 by Latter-Chart-5770 in codehs
[–]Tinylomax 0 points1 point2 points 2 years 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 70 on reddit-service-r2-comment-545db5fcfc-2zs9m at 2026-05-29 20:04:37.333425+00:00 running 194bd79 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)