Skip to content

Part 1: Programming exercise: Temperatures #91

@alidekker

Description

@alidekker

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions