Exercise 3: Convert Miles to Kilometers
Write a method that takes distance in miles as input and converts it into kilometers.
We'll cover the following
Problem statement
Write a method named miles_to_kilometers
that inputs a number, in this case, distance covered in miles, and converts it into distance covered in kilometers.
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy