Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
+ 2

# Celsius & Fahrenheit

https://code.sololearn.com/c8A21A5a101A/?ref=app What is wrong with this code ?

15th Dec 2020, 10:05 PM
Mariam Zerouk
8 Antworten
+ 5
Actually, the formula is provided on the question page. You just have to copy and paste into the function. https://code.sololearn.com/cmb1VX4r61pq/?ref=app
18th Dec 2020, 5:56 PM
Lam Wei Li
+ 1
you can have a one-line code, using the walrus operator (if i remember it's name correctly), print(cels := (int(input()) * 9 / 5) + 32 )
20th Mar 2022, 3:51 PM
İsa Mücahid
0
Jan Markus Kunevich Evgeniyy Evgenievich guys my code is correct but the test ask me to write an input 0 to have an output 32,0 and i dont know how to do it
16th Dec 2020, 2:08 PM
Mariam Zerouk
0
Jan Markus Kunevich Evgeniyy Evgenievich guys my code is correct but the test ask me to write an input 0 to have an output 32,0 and i dont know how to do it
16th Dec 2020, 2:08 PM
Mariam Zerouk
0
I can give you easier code:(f-Fahrenheit). celsius = int(input()) f = (celsius * 9/5) + 32 print(f)
29th Dec 2020, 6:04 PM
MaryRif
0
MaryRif thanks I solved it
29th Dec 2020, 9:16 PM
Mariam Zerouk
0
this is the right answer copy and paste or your project tnx celsius = int(input()) def conv(c): fahrenheit=9/5*celsius+32 return fahrenheit fahrenheit = conv(celsius) print(fahrenheit)
27th Feb 2021, 10:19 AM