Python 101 : Unpacking Sets, Lists and Tuples using the "*" symbol


The "*" can be used for un-packing liststuples, or sets as we see in the following examples.

For tuples:


For lists:




And for sets:

Comments

Leave as a comment:

Archive