Question: PYTHON QUESTION # FUNCTIONS # 8) 15 points C to K temperatures Define a function celsius to_kelvin Given a temperature c in degrees celsius, returns
PYTHON QUESTION
# FUNCTIONS # 8) 15 points C to K temperatures Define a function celsius to_kelvin Given a temperature c in degrees celsius, returns a temperature in Kelvin units. 0 Kelvin is equivalent to -273.15 degrees Celsius To convert from celsius to kelvin, add 273.15 to the celsius temperature. # Your function definition goes here: # Go go Format menu, uncomment the following code after you have defined your function. # Run the code to test your function. this temperature) ##my-c-temp-0 # degrees c or celsius (water freezes at ##my-kelvin- celsius-to-kelvin(my-c-temp) ##print(my.kelvin, "K equals", my-c-temp , "degrees C") ### Should say ### 273.15 K equals 0 degrees C ##another-C-20 # degrees C ##another-K-celsius-to-kelvin(another-C) ##print(another-K, "K equals", another-C, "degrees ### Should say ### 293.15 K equals 20 degrees C C")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
