Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Created Jul 21, 2020
Embed
What would you like to do?
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