Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View gist:6650955
1 2 3 4 5 6 7
>>> 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.