0 votes
110 views
in Python by (98.9k points)
edited
Python Program to Convert Kilometers to Miles

1 Answer

0 votes
by (98.9k points)
selected by
 
Best answer
# Taking kilometers input from the user
kilometers = float(input("Enter value in kilometers: "))

# conversion factor
conv_fac = 0.621371

# calculate miles
miles = kilometers * conv_fac
print('%0.2f kilometers is equal to %0.2f miles' %(kilometers,miles))

 

Related questions

0 votes
1 answer 103 views
asked Jun 11, 2022 in Python by Doubtly (98.9k points)
0 votes
1 answer 283 views
0 votes
1 answer 116 views
asked Jun 11, 2022 in Python by Doubtly (98.9k points)
0 votes
1 answer 183 views
asked Jun 11, 2022 in Python by Doubtly (98.9k points)
0 votes
1 answer 192 views
0 votes
1 answer 112 views
asked Jun 11, 2022 in Python by Doubtly (98.9k points)

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

561 users

...