Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
>>> a = [1, 2]
>>> a_multiply = [a] * 5
>>> a_comp = [a for _ in range(5)]
>>> all(i is a for i in a_multiply)
>>> all(i is a for i in a_comp)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment