Skip to content

Instantly share code, notes, and snippets.

@chuck0523
Created June 3, 2016 13:55
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 chuck0523/03b6f1b907bd5c0e8c3bb3bee3657bb1 to your computer and use it in GitHub Desktop.
Save chuck0523/03b6f1b907bd5c0e8c3bb3bee3657bb1 to your computer and use it in GitHub Desktop.
print([a+str(i) for i in range(3) for a in 'abc'])
# ['a0', 'b0', 'c0', 'a1', 'b1', 'c1', 'a2', 'b2', 'c2']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment