Bryce H.

asked • 02/25/23

how to code this and import it?

Create 2 functions; one to convert a value from Fahrenheit to celsius and the second function to convert from celsius to Fahrenheit, remember to return the values in the function statement.

Create a new python file called ICE1.py. Using Import, import your new functions script in the ICE.py script.

Using the print() function, test and invoke the celsius and Fahrenheit functions.


2 Answers By Expert Tutors

By:

William M.

tutor
in ice1.py, some print statements just say print('-------------') and others use f strings (print(f'----{...} {...}') (like C++, Java...) f strings allow you to specify field width and decimals (like 7.2f)
Report

05/31/23

William M.

tutor
Note -40 F == 40 C Hope you never had to feel that temp but I did when I went to college !
Report

05/31/23

Chris W. answered • 02/26/23

Tutor
New to Wyzant

Experienced Software Engineer and CS Tutor

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.