Need help figuring out the errors.. Using Python 3.3.0?

This is the question: Write a program that asks the user to enter a distance in kilometers, and then converts that distance to miles. The conversion formula is as follows: Miles 5 Kilometers 3 0.6214 What I have so far: def main(): # Ask the user for the distance in kilometers. kilometers =... show more This is the question: Write a program that asks the user to enter a distance in kilometers, and then converts that distance to miles. The conversion formula is as follows: Miles 5 Kilometers 3 0.6214

What I have so far:

def main():

# Ask the user for the distance in kilometers.

kilometers = input('Enter the distance in kilometers: ')

kilo(kilometers)



def kilo(kilometers):

# Convert the kilometers to miles.

miles = kilometers * 0.6214



# State what the miles are.

print 'That converts to ', miles, 'miles.'



# Call the main function.

main()
1 answer 1