can anyone tell how to convert km in metre, centimetre and millimetre In python?
Share
can anyone tell how to convert km in metre, centimetre and millimetre In python?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer:
Explanation:
a = float(input("Enter km"))
m==a*1000
cm==m*100
mm==cm*10
print(a," kilometre = ",m," metres, ",cm," centimetres, and ",mm," millimetres)