+ 1

# Plesse Help Me Do fizz buzz of Functions and Modules in Python. Celsius to Farenheit Converter.

2nd Dec 2020, 1:27 PM
P. SAI SRI RAM
16 Antworten
+ 10
celsius = int(input()) def conv(c): #your code goes here return 9/5 * c + 32 fahrenheit = conv(celsius) print(fahrenheit)
4th Jan 2021, 3:28 PM
Shalini Kumari
+ 2
SAI SRI RAM - CODE HERO You forgot to call the function in the end. def myfunc(c): c = input("Enter Celcius value: ") return 9/5 * c + 32 print(myfunc())
2nd Dec 2020, 3:09 PM
Rahul Hemdev
+ 2
Slick Oops, I forgot that... Edit: https://code.sololearn.com/cklv93xBR9pg/?ref=app The above code works... There was an additional error, you forgot to convert input to integer SAI SRI RAM - CODE HERO
2nd Dec 2020, 3:12 PM
Rahul Hemdev
+ 1
Thanks all of you
2nd Dec 2020, 3:28 PM
P. SAI SRI RAM
0
SAI SRI RAM - CODE HERO , if you need help show your codes and the whole descriptions of the tasks.
2nd Dec 2020, 1:42 PM
TheWh¡teCat 🇧🇬
0
Sure, post your attempt so we can help
2nd Dec 2020, 1:42 PM
Slick
0
Ok
2nd Dec 2020, 2:41 PM
P. SAI SRI RAM
0
You are making a Celsius to Fahrenheit converter. Write a function to take the Celsius value as an argument and return the corresponding Fahrenheit value. Sample Input 36 Sample Output 96.8 This is the Question.
2nd Dec 2020, 2:43 PM
P. SAI SRI RAM
0
Cool, show the code that you've been working on.
2nd Dec 2020, 2:44 PM
Slick
0
Ok
2nd Dec 2020, 2:45 PM
P. SAI SRI RAM
0
def myfunc(c) c = input("Enter Celcius value: ") return 9/5 * c + 32 Here's The CODE.
2nd Dec 2020, 2:45 PM
P. SAI SRI RAM
0
But I am Getting A Error
2nd Dec 2020, 2:46 PM
P. SAI SRI RAM
0
Plus, you don't need the 'c' parameter if it's just going to be input. So it would look like: def myfunc(): c = inp... return 9/5 .... print(myfunc())
2nd Dec 2020, 3:11 PM
Slick
0