You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't understand what I did wrong.
It says:
"Your program should print out
32 degrees Fahrenheit equals 0.0 degrees Celsius
when input is 32, but now print out is
32 degrees Fahrenheit equals 0.0 degrees Celcius"
My code was:
temperature_f = int(input("Please type i a temperature (F):"))
temperature_c = (temperature_f - 32) * 5/9
print(f"{temperature_f} degrees Fahrenheit equals {temperature_c} degrees Celcius")
if temperature_c < 0:
print("Brr! It's cold in here!")
Can someone help?
The text was updated successfully, but these errors were encountered:
freescaro
changed the title
Part 1, exercise 26
Part 1, exercise 26: Temperatures
Feb 29, 2024
I can't understand what I did wrong.
It says:
"Your program should print out
32 degrees Fahrenheit equals 0.0 degrees Celsius
when input is 32, but now print out is
32 degrees Fahrenheit equals 0.0 degrees Celcius"
My code was:
temperature_f = int(input("Please type i a temperature (F):"))
temperature_c = (temperature_f - 32) * 5/9
print(f"{temperature_f} degrees Fahrenheit equals {temperature_c} degrees Celcius")
if temperature_c < 0:
print("Brr! It's cold in here!")
Can someone help?
The text was updated successfully, but these errors were encountered: