Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
>>> a = [1, 2]
>>> a_multiply = [a] * 5
>>> a_comp = [a for _ in range(5)]
>>> all(i is a for i in a_multiply)
True
>>> all(i is a for i in a_comp)
True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.