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

Зміст курсу

Python Data Structures

Lists Are MutableLists Are Mutable

Lists are a flexible data structure in Python, meaning you can modify them by adding, removing, or changing items. Additionally, you can replace a single item with multiple ones.

Завдання

You're working with the list [2, 4, 8, 64, 1024]. Your task is to update the last item to 5 and the first item to 0.

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

Секція 1. Розділ 6
toggle bottom row
course content

Зміст курсу

Python Data Structures

Lists Are MutableLists Are Mutable

Lists are a flexible data structure in Python, meaning you can modify them by adding, removing, or changing items. Additionally, you can replace a single item with multiple ones.

Завдання

You're working with the list [2, 4, 8, 64, 1024]. Your task is to update the last item to 5 and the first item to 0.

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

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