# We have already learnt about functions in different ways. We already know basics of functions.
# Their basic two types:
# 1. Inbuilt functions.
# 2. User-defined functions.
# Python3 program to convert
# kmph to mps and vice versa
# Function to convert speed
# in km/hr to m/sec
def kmph_to_mps(kmph):
return (0.277778 * kmph)
# Function to convert speed
# in m/sec to km/hr
def mps_to_kmph(mps):
return (3.6 * mps)
# Driver Code
# variable to store
# speed in kmph
kmph = 72.0
# variable to store
# speed in mps
mps = 10.0
print("speed_in_mps = ", int(kmph_to_mps(kmph)) ,
" speed_in_kmph = ", int(mps_to_kmph(mps)))
Temperature is a quantity that express the degree of heat and cold an object is a tool used to measure the temperature of the thermometer. In everyday life people tend to measure the temperature using the sense of touch. But with the development of the technology was created to measure the temperature with a thermometer valid.
The following table shows the temperature conversion formulas for conversions to and from the Celsius scale.
specific heat, the quantity of heat required to raise the temperature of one gram of a substance by one Celsius degree. The units of specific heat are usually calories or joules per gram per Celsius degree. For example, the specific heat of water is 1 calorie (or 4.186 joules) per gram per Celsius degree. The Scottish scientist Joseph Black, in the 18th century, noticed that equal masses of different substances needed different amounts of heat to raise them through the same temperature interval, and, from this observation, he founded the concept of specific heat.