Python Program to Convert Distance from Kilometers to Miles

preview_player
Показать описание
In this Python Programming video tutorial you will learn to write a program to convert distance from Kilometer to Mile
First we ask the user to enter the distance in Kilometer Km and then we multiply it by 0.621371 to get distance in Miles

For more tutorials visit our website

Learning Lad on social media

#PythonExamplePrograms
Рекомендации по теме
Комментарии
Автор

Nice explenation, thank you! For the user input i used:
km = int(input("Enter Km: "))
It seems like it's working

vladbeatz
Автор

I can make it work if I do it simply like a print statement, but I'm trying to write a function and it's spitting this out.
<function miles at

theindooroutdoorsman
Автор

Hello bro im from ur c++ tutorials and have no idea about python
Bro don't we have data types in python??

OG_CK
Автор

I can't run your program via online code tester, what do you think is wrong?

jarettelee
Автор

What is the purpose of %.2f please explain to me?

nooobgamerr
Автор

Sir when we will get to see the python tutorial full lis

sudhansumtripathy
Автор

Please we need more information about c++

Awwe
Автор

i entered same code as you but it gave indentation error

aarezkhan
Автор

What if 2f here
Can anyone please reply

bharathkalyan