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

Wrong test, Part 1, Section 5, Programming Exsercise 6 #89

Open
iodoubo opened this issue Oct 16, 2022 · 1 comment
Open

Wrong test, Part 1, Section 5, Programming Exsercise 6 #89

iodoubo opened this issue Oct 16, 2022 · 1 comment

Comments

@iodoubo
Copy link

iodoubo commented Oct 16, 2022

Hello!
I wrote the following program!

fahrenheit = int(input("Please type in a temperature (F): "))
celsius = (fahrenheit - 32)*(5/9)
if celsius >= 0:
print(f"{fahrenheit} degrees Fahrenheit equals {celsius} degrees Celsius")
if celsius < 0:
print(f"{fahrenheit} degrees Fahrenheit equals {celsius} degrees Celsius")
print("Brr! it's cold in here!")

And it works perfectly fine for positive and negative numbers including zero!
So what's the problem with the test button? Because when i press it, it gives me this:

Your program did not print out message 'Brr! It's cold in here!' in a case where the temperature is below zero. Make sure that this print out happens with input -34

Which is clearly wrong cause when i put an input : -34
my code runs well as it's shown below:

Please type in a temperature (F): -34
-34 degrees Fahrenheit equals -36.66666666666667 degrees Celsius
Brr! it's cold in here!

Please fix it! Thank you!

@zevelix
Copy link

zevelix commented Oct 16, 2022

@iodoubo Looks like the test is case sensitive. Check your capitalization on the print statement if the temperature is <0 Celsius.

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

2 participants