Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Created July 21, 2020 04:54
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/7394b53fd281523deb0ad27e75d919e7 to your computer and use it in GitHub Desktop.
Save IndhumathyChelliah/7394b53fd281523deb0ad27e75d919e7 to your computer and use it in GitHub Desktop.
l1=[[n for n in range(10) if n %2==0] for n1 in range(3)]
print (l1)#Output:[[0, 2, 4, 6, 8], [0, 2, 4, 6, 8], [0, 2, 4, 6, 8]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment