CommencerCommencer gratuitement

List exploration

One of the unique things about lists is that they can contain all kinds of things, from numbers to strings, and even functions and NumPy arrays. This can be very useful for gathering things together instead of assigning variables for each item.

In this exercise, you're going to see some of the things that lists can contain by exploring what is in the list things.

Cet exercice fait partie du cours

Python for MATLAB Users

Afficher le cours

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

# Print the first element of "things"
print(____)
Modifier et exécuter le code