Created
February 13, 2015 06:20
-
-
Save cwake/7838bbfcc00f32209bd7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Convert miles into kilometers | |
#using ints | |
ints = (5) | |
odds = (1,10,2) | |
tens = (10,51,10) | |
def milestokilometers (numbers) | |
for m in numbers: | |
print (round (m * 1.609344, 3)) | |
milestokilometers(ints) | |
milestokilometers(odds) | |
milestokilometers(tens) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment