Robotics & Artificial Intelligence
The value of a list item can be easily updated.
Python List Manipulation
1 Like
Answer
True
Reason — A list is mutable, so its elements can be modified or updated after the list is created.
Answered By
2 Likes
Related Questions
What should be the output of the following program and why?
list_new=[34, "Hi", 56.7, "Hello"] list_new.extend(["India", "Happy"]) print(list_new)You can create a list with different data items by placing them inside single quotes.
Each data item in the list is assigned a unique index value.
In Python, you cannot change the sequence of the index value of a list.