Skip to content

Instantly share code, notes, and snippets.

@hoodja
Last active December 15, 2015 13:29
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 hoodja/5267240 to your computer and use it in GitHub Desktop.
Save hoodja/5267240 to your computer and use it in GitHub Desktop.
>>> original_list = ['awesome', 'stupid', 'jim', 'rich', 'magnus']
>>> [ x + 'sauce' for x in original_list]
['awesomesauce', 'stupidsauce', 'jimsauce', 'richsauce', 'magnussauce']
original_list = ['awesome', 'stupid', 'jim', 'rich', 'magnus']
[ x + 'sauce' for x in original_list]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment