Python 101 : Iterables and variable-length tuples in a list


Iterables are objects that we can loop through, like - lists, tuples, sets, dictionaries, strings, ... -.

We have the below list with different member of our list "elements":


We will use the "*" symbol to fit all the lengths, whether the elements of the iterable have two, three on more elements.

The below code displays the first and the second element of the list "elements":

Comments

Leave as a comment:

Archive