Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Created July 21, 2020 03:03
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 IndhumathyChelliah/802be79a96873e6ce48cd0086b3688b5 to your computer and use it in GitHub Desktop.
Save IndhumathyChelliah/802be79a96873e6ce48cd0086b3688b5 to your computer and use it in GitHub Desktop.
a1=['red','green','blue']
b1=[0,1,2]
a2=[a,b for a in a1 for b in b1]
#SyntaxError: invalid syntax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment