Skip to content

Instantly share code, notes, and snippets.

@cwake
Last active August 29, 2015 14:15
Show Gist options
  • Save cwake/40021347846be7a377ac to your computer and use it in GitHub Desktop.
Save cwake/40021347846be7a377ac to your computer and use it in GitHub Desktop.
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