Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Part 1: Programming exercise: Temperatures #91

Open
alidekker opened this issue Dec 23, 2024 · 0 comments
Open

Part 1: Programming exercise: Temperatures #91

alidekker opened this issue Dec 23, 2024 · 0 comments

Comments

@alidekker
Copy link

The program:

Write your solution here

T_Fahr = int(input("What temperature is it in Fahrenheit? "))
T_Celsius = (T_Fahr - 32) * 5/9
print(f"{T_Fahr} degrees Fahrenheit equals {T_Celsius} degrees Celcius")
if T_Celsius < 0:
print("Brr! It's cold in here!")

Results in the test in:
FAIL: PythonEditorTest: test_1_zero

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

The result of the program and what the program should do are the same so where is the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant