I have noticed that some people use *
to turn something into a list. I initially only knew of putting list(x)
around the object, but doing *x
also seems to work. Are they equivalent?
For example, both *Counter(list).values()
and list(Counter(list).values())
work fine