0

Function

What’s wrong with my code? celsius = int(input()) def conv(c): #your code goes here c = celsius fahrenheit = 9/5 * c + 32 my_result = fahrenheit return my_result print(my_result)

1st Feb 2022, 12:02 AM
Knowledge Is Power
Knowledge Is Power - avatar
2 Answers
+ 4
you are not calling your function print(conv(celsius))
1st Feb 2022, 12:14 AM
L.M.Paredes
L.M.Paredes - avatar
+ 3
Thank you so much!! I was stuck for a long time👍
1st Feb 2022, 12:19 AM
Knowledge Is Power
Knowledge Is Power - avatar