Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

How may I convert miles to kilometers on Python 3

0 votes
asked Oct 29, 2019 by Hélder Pedro Maluane (160 points)

2 Answers

0 votes
answered Oct 29, 2019 by gameforcer (2,990 points)
selected Nov 3, 2019 by Hélder Pedro Maluane
 
Best answer

Literally 1st link in google:

kilometers = 6
conversion_factor = 0.62137119

miles = kilometers / conversion_factor
print(miles)

0 votes
answered Nov 7, 2019 by dheeraj (1,090 points)
a=int(input('enter the no.of kilometers'))
b=0.621371
c=a*b
print(c)

output

enter the no.of kilometers6
3.7282260000000003                                                                     @python
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...