Skip to content

Instantly share code, notes, and snippets.

@eightysteele
Created August 6, 2011 02:23
Show Gist options
  • Select an option

  • Save eightysteele/1128923 to your computer and use it in GitHub Desktop.

Select an option

Save eightysteele/1128923 to your computer and use it in GitHub Desktop.
>>> sp = []
>>> for x in props.split('\n'):
... if x.split()[0] == 'X':
... sp.append(x.split()[1].lower())
...
>>> sp.sort()
>>> sp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment