CODE
#kmtomiles.py
#Python program :It coverts kilometer to miles
def main():
print("This program convert Kilometers to miles")
km=eval(input("Enter Kilometers ?"))
miles = 0.62 * km
print("Aha , I know Miles are ",miles)
main()
NOTE : save above file as kmtomiles.py
SCREENSHOT
No comments:
Post a Comment