Blog Post #119: The Easiest Way to Merge Collections: * and ** Unpacking
In Post #118, we saw how the * operator could be used on the left side of an assignment to collect multiple items into a list (e.g., first, *rest = my_list). This unpacking concept has a powerful counterpart when used on the right side of an expression, inside list or dictionary literals. In this post, … Read more