Skip to content

Instantly share code, notes, and snippets.

@jamesbeedy
Last active December 30, 2015 05:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesbeedy/7780971 to your computer and use it in GitHub Desktop.
Save jamesbeedy/7780971 to your computer and use it in GitHub Desktop.
to fight or lay.......
#to fight or lay......
# mysequ
# What some would call working against the language....
def sequ(minimum, maximum, incrementer=None):
seqarry = []
if not incrementer:
incrementer = 1
while minimum <= maximum:
seqarry.append(minimum)
minimum += incrementer
return seqarry
# pysequ
# This is still my work....just not as much so as the first...
# Writing into the language.....the reccomended way...
def sequ(minimum, maximum, incrementer=None):
if not incrementer:
incrementer = 1
return range(minimum, maximum, incrementer)
#The later of the two is much cleaner, sweeter, and shorter.......but is it really?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment