Skip to content

Instantly share code, notes, and snippets.

@alistairwalsh
Created February 19, 2015 12:24
Show Gist options
  • Save alistairwalsh/cf953670de24f4529e22 to your computer and use it in GitHub Desktop.
Save alistairwalsh/cf953670de24f4529e22 to your computer and use it in GitHub Desktop.
Suggestion for a memorable loop and function example
def peel(name):
return name[1:-1]
bag = ['dutch cream','desiree','kifler']
for potato in bag:
print peel(potato)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment