Skip to content

Instantly share code, notes, and snippets.

@libert-xyz
Created January 8, 2016 03:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save libert-xyz/a61c44c3718dcc26c1e9 to your computer and use it in GitHub Desktop.
Save libert-xyz/a61c44c3718dcc26c1e9 to your computer and use it in GitHub Desktop.
#Libert R Schmidt
#rschmidt@libert.xyz
#http://www.practicepython.org/exercise/2014/04/25/12-list-ends.html
def listEnds():
n = 0
a = [5, 10, 15, 20, 25]
newList = []
for i in range(0,2):
newList.append(a[n])
n = n -1
print (newList)
listEnds()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment