Programming with Python

⌘K
  1. Home
  2. Docs
  3. Programming with Python
  4. List, Tuples and Dictiona...
  5. Lists
  6. Mutability

Mutability

Table of Contents show
  • Lists are mutable
  • The value of any element inside the list can be changed at any point of time
  • The elements of the list are accessible with their index value
  • The index value starts with 0 and ends with n-1, if the list contains ‘n’ elements

Syntax

list[index] = item

Example

Loading

Views: 0

How can we help?

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments