km/h -> m/s divide by 3.6 m/s -> km/h multiply by 3.6 mps = 60 def convertToKph(n): return n * 3.6 kph = 360 def convertToMps(n): return n / 3.6 new_kph = convertToKph(mps) # new_kph = 216 new_mps = convertToMps(kph) # new_mps = 100