World Languages, asked by tomba5064, 1 year ago

3. Write a Python program to convert kilometres to Meters.

Answers

Answered by AmritanshuKesharwani
7

Answer:

I am writing a code three line which solve your problem quickly please copy and paste in your python3 compiler.

1. a=float(input('enter the value in kilometer\n'))

2. z=a*1000

3. print("Length in metre is",z)

Explanation:

Here, I am using float() function to take or store a float number which is also known as a decimal number just like 9.67042 is a type of float which we use in Python3 language. Now, I am using input() function to take data or information from the computer user as a input just like here I have to take the value of kilometer which this program convert it into meter and give it to you in your computer screen as result or output. Just like I put the value of kilometer which is 1 and using this program the 1 kilometer converts into 1000 meter as output. Here, I am using a method of numerical analysis which is known as the process of formulation in mathematics. Just like z = a*1000 in this program which helps in conversion of kilometer into meter. Now, I am using print() function to print the correct answer or result as a output in our computer screen.

Learn more from this link here:

https://brainly.in/question/14689905

#Be Brainly

Attachments:
Answered by kanchanchaurasia62
0

Answer:

above ans is correct mark me as a specilist

Similar questions