human
Program to Convert Km / hr to miles / hr and vice versa | Function to convert kmph to mph.
Function to convert mph to kmph ;"
How can the above be solved in Python?
assistant
#Here is code to program to Convert Km / hr to miles / hr and vice versa and the other steps required.
 def kmphTOmph ( kmph ) :
	mph = 0.6214 * kmph
	return mph
def mphTOkmph ( mph ) :
	kmph = ( float ) ( mph * 1.60934 )
	return kmph
/ * Driver code to check the above function * /
kmph = 150
mph = 100
print " speed ▁ in ▁ miles ▁ / ▁ hr ▁ is ▁ " , kmphTOmph ( kmph )
print " speed ▁ in ▁ km ▁ / ▁ hr ▁ is ▁ " , mphTOkmph ( mph )