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

Course Content

Python Data Structures

Python Data Structures

1. List
2. Dictionary
3. Tuple
4. Set
5. For deleting

bookLists 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.

1234
numbers = [2, 14, 16, 32, 24, 65, 75] # Replacement of the fourth element numbers[3] = 5 print(numbers)
copy

Task

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.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 1. Chapter 6
toggle bottom row

bookLists 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.

1234
numbers = [2, 14, 16, 32, 24, 65, 75] # Replacement of the fourth element numbers[3] = 5 print(numbers)
copy

Task

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.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 1. Chapter 6
toggle bottom row

bookLists 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.

1234
numbers = [2, 14, 16, 32, 24, 65, 75] # Replacement of the fourth element numbers[3] = 5 print(numbers)
copy

Task

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.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

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.

1234
numbers = [2, 14, 16, 32, 24, 65, 75] # Replacement of the fourth element numbers[3] = 5 print(numbers)
copy

Task

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.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Section 1. Chapter 6
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
some-alt