+ 1
Plesse Help Me Do fizz buzz of Functions and Modules in Python. Celsius to Farenheit Converter.
16 Respuestas
+ 10
celsius = int(input())
def conv(c):
#your code goes here
return 9/5 * c + 32
fahrenheit = conv(celsius)
print(fahrenheit)
+ 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())
+ 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
+ 1
Thanks all of you
0
SAI SRI RAM - CODE HERO , if you need help show your codes and the whole descriptions of the tasks.
0
Sure, post your attempt so we can help
0
Ok
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.
0
Cool, show the code that you've been working on.
0
Ok
0
def myfunc(c)
c = input("Enter Celcius value: ")
return 9/5 * c + 32
Here's The CODE.
0
But I am Getting A Error
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())
0
Rahul Hemdev You didn't forget anything! I was simply adding on to your good advice
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
0
It is showing me no output