You are making a Celsius to Fahrenheit converter. Write a function to take the Celsius value as an argument and return the cor | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

You are making a Celsius to Fahrenheit converter. Write a function to take the Celsius value as an argument and return the cor

11th Nov 2020, 3:58 PM
Dino Gupta
Dino Gupta - avatar
27 Answers
+ 26
celsius = int(input()) def conv(c): #your code goes here return (c*9/5)+32 fahrenheit = conv(celsius) print(fahrenheit)
11th Nov 2020, 4:35 PM
Simba
Simba - avatar
+ 5
celsius = int(input()) #remember to indent your code def conv(c): #your code goes here #converts the celsius to fahrenheit return 9/5 * c + 32 fahrenheit = conv(celsius) print(fahrenheit)
10th Mar 2021, 5:36 AM
Siddhesh Panajkar
Siddhesh Panajkar - avatar
+ 1
celsius = int(input()) def conv(c): #your code goes here fahrenheit =con(c) fahrenheit = conv(c) print(fahrenheit)
11th Nov 2020, 4:07 PM
Dino Gupta
Dino Gupta - avatar
+ 1
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, 6:05 PM
Lam Wei Li
Lam Wei Li - avatar
+ 1
celsius = int(input()) remember to indent your code def conv(c): #your code goes here #converts the celsius to fahrenheit return 9/5 * c + 32 fahrenheit = conv(celsius) print(fahrenheit)
4th Feb 2021, 4:36 AM
Ronny Karani
Ronny Karani - avatar
+ 1
celsius = int(input()) def conv(c): #your code goes here return (c*9/5)+32 fahrenheit = conv(celsius) print(fahrenheit)
8th May 2021, 6:12 PM
Ajinkya khandagale
Ajinkya khandagale - avatar
+ 1
celsius = int(input()) def conv(c): #your code goes here fahrenheit = 9/5 * celsius + 32 return fahrenheit fahrenheit = conv(celsius) print(fahrenheit)
16th Apr 2023, 4:57 PM
AMINE MOUTAOUAKKIL
0
Can anybody tell the code for this
11th Nov 2020, 4:03 PM
Dino Gupta
Dino Gupta - avatar
0
Thanks
11th Nov 2020, 4:34 PM
Dino Gupta
Dino Gupta - avatar
13th Nov 2020, 6:00 PM
Mr. Rahul
Mr. Rahul - avatar
0
Here is my solution if you can read it celsius = int(input()) def conv(c): #your code goes here result = (9/5*celsius+32) return result fahrenheit = conv(celsius) print(fahrenheit)
9th May 2021, 2:18 AM
Oscar Luis Sanchez
Oscar Luis Sanchez  - avatar
0
celsius = int(input()) def conv(c): #your code goes here result = (9/5*celsius+32) return result fahrenheit = conv(celsius) print(fahrenheit)
21st May 2021, 9:40 AM
mohammadSadeghi
mohammadSadeghi - avatar
0
celsius = int(input()) def conv(c): #your code goes here return (c*9/5)+32 fahrenheit = conv(celsius) print(fahrenheit)
1st Jun 2021, 9:20 AM
SHARON R
SHARON R - avatar
0
celsius = int(input()) def conv(c): #your code goes here return (c*9/5)+32 fahrenheit = conv(celsius) print(fahrenheit)
1st Jun 2021, 9:20 AM
SHARON R
SHARON R - avatar
0
celsius = int(input()) def conv(celsius): fahrenheit = (1.8 * celsius + 32) print(fahrenheit) conv(celsius)
10th Jul 2021, 6:52 PM
Hugues Rodrigue Tha Andela
Hugues Rodrigue Tha Andela - avatar
0
celsius = int(input()) def conv(c): fahrenheit=9/5*c+32 return fahrenheit fahrenheit = conv(celsius) print(fahrenheit)
31st Jul 2021, 7:32 AM
Devendra Sahu
Devendra Sahu - avatar
0
celsius = int(input()) def conv(c): fahrenheit = 9/5 * c +32 print(fahrenheit ) conv(celsius) #You may not put celsius value in function conv
4th Sep 2021, 10:04 PM
malik ansar
malik ansar - avatar
0
celsius = int(input()) def conv(c): #your code goes here return (9/5*c+32) fahrenheit = conv(celsius) print(fahrenheit)
10th Sep 2021, 2:35 AM
Vishal Majumdar
Vishal Majumdar - avatar
0
pin = input() try: #your code goes here except ValueError: #and here
8th Dec 2021, 11:43 AM
Khalil Haddad
Khalil Haddad - avatar
0
celsius = int(input()) def conv(c): return 9/5 * c + 32 fahrenheit = conv(celsius) print(fahrenheit)
23rd Dec 2021, 4:45 PM
Md. Rakibul Islam
Md. Rakibul Islam - avatar