Question: Python 3.6.4 K to C temperatures # # Define a function kelvin_to_celsius # Given a temperature k in Kelvins, returns # a temperature in degree

Python 3.6.4

K to C temperatures
#
# Define a function kelvin_to_celsius
# Given a temperature k in Kelvins, returns
# a temperature in degree celsisu units.

# 0 Kelvin is equivalent to -273.15 degrees Celsius.
# To convert from kelvin to celsius, subtract 273.15 from celsiustemperature.



# Run the code to test your function.

##my_kelvin = 273.15 # (water freezes at thistemperature).
##my_celsius = kelvin_to_celsius(my_kelvin)
##print(my_kelvin, "K equals", my_c_temp, "degrees C")
###
### Should say
### 273.15 K equals 0.0 degrees C
##
##another_K = 293.15 # Kelvins
##another_C = kelvin_to_celsius(another_K)
##print(another_K, "K equals", another_C, "degrees C")
### Should say
### 293.15 K equals 20.0 degrees C

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!