Ask Question
17 November, 14:55

def c_to_f () : # FIXME return # FIXME: Finish temp_c = float (input ('Enter temperature in Celsius: ')) temp_f = None # FIXME: Call conversion function # temp_f = ? # FIXME: Print result # print ('Fahrenheit:', temp_f)

+4
Answers (1)
  1. 17 November, 15:01
    0
    def c_to_f (celsius) : return celsius * 9/5 + 32 temp_c = float (input ('Enter temperature in Celsius: ')) temp_f = None temp_f = c_to_f (temp_c) print ('Fahrenheit:', temp_f)

    Explanation:

    The first piece of code we can fill in is the formula to convert Celsius to Fahrenheit and return it as function output (Line 2).

    The second fill-up code is to call the function c_to_f and pass temp_c as argument (Line 7). The temp_c will be processed in the function and an equivalent Fahrenheit value will be returned from the function and assigned it to temp_f.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “def c_to_f () : # FIXME return # FIXME: Finish temp_c = float (input ('Enter temperature in Celsius: ')) temp_f = None # FIXME: Call ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers