Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Nested List
course content

Зміст курсу

Python Data Structures

Nested ListNested List

Items within a Python list can also be lists, resulting in nested lists, sometimes referred to as "lists within lists." Here's an example of a nested list:

Завдання

Construct a list called list_2 containing these elements:

[1, [2, 3], 4, [5, 6], 7]

Все було зрозуміло?

Секція 1. Розділ 2
toggle bottom row
some-alt