Last active
August 29, 2015 14:15
-
-
Save cwake/40021347846be7a377ac 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
ints = range(5) | |
odds = range(1, 10, 2) | |
tens = range(10, 51, 10) | |
def milestokilometers(numbers): | |
for m in numbers: | |
print(round(m * 1.609344, 3)) | |
milestokilometers(ints) | |
milestokilometers(odds) | |
milestokilometers(tens) | |
# simple example of passing variables | |
def blahblah(p): | |
print(p) | |
blahblah("hello") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment