Skip to content

Instantly share code, notes, and snippets.

@tobin
Last active December 16, 2015 23:59
Show Gist options
  • Save tobin/5517695 to your computer and use it in GitHub Desktop.
Save tobin/5517695 to your computer and use it in GitHub Desktop.
Today I learned

This is valid:

M = [1,2,3]    
for M[0] in range(0,10):
    print M[0]

2013-05-14

The star operator opens tuples and other sequences:

f(*x) == apply(f, x)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment