Python Program to Convert Distance from Kilometer to Mile

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

our Social Media Pages

Our Website

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

i just wanna make it without the output how ?

xz-
Автор

kmvalue = float(input("Enter the Distance in Kilometers: ")

mvalue = kmvalue * 0.621371

print(" %.2f kilometer = %.2f miles " %(kmvalue, mvalue))

File "<ipython-input-50-60e79cd1213a>", line 3
mvalue = kmvalue * 0.621371
^
SyntaxError: invalid syntax

chertog_of_Veles
join shbcf.ru