15th Dec 2020, 10:05 PM
Mariam Zerouk
Mariam Zerouk  - avatar
8 Respostas
+ 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
Lam Wei Li - avatar
+ 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
İsa Mücahid - avatar
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
Mariam Zerouk  - avatar
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
Mariam Zerouk  - avatar
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
MaryRif - avatar
0
MaryRif thanks I solved it
29th Dec 2020, 9:16 PM
Mariam Zerouk
Mariam Zerouk  - avatar
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
Adugna Tsegaye
Adugna Tsegaye - avatar
- 1
celsius = int(input()) def conv(celsius): #your code goes here return 9/5*celsius + 32 fahrenheit = conv(celsius) print(fahrenheit)
17th Jan 2022, 9:07 AM
Francis Njeri
Francis Njeri - avatar