Last active
December 30, 2015 05:09
-
-
Save jamesbeedy/7780971 to your computer and use it in GitHub Desktop.
to fight or lay.......
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
#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