Robotics & Artificial Intelligence
Tuples are …………… objects.
- Mutable
- Immutable
- Non-static
- Infinite
Python Tuples
3 Likes
Answer
Immutable
Reason — Tuples are immutable objects, which means their elements cannot be changed after creation.
Answered By
1 Like
Related Questions
To print an individual item of the tuple, you need to specify the ……………. value of the item inside the square brackets.
- Order
- Index
- Zero
- Negative
The …………… keyword is used to print the list elements in descending order.
- Sort
- Index
- Descend
- Reverse
Fill in the blanks:
- Python offers a wide range of data structures often referred to as ……………. .
- In an ……………. list, the square brackets [] do not hold any value.
- The ……………. function in Python can be used when we want to know the number of elements stored in a list.
- A tuple is an ……………. sequence of items having any number of elements of different data types.
- Sorting is the process of ……………. and displaying the elements of a list in ascending or descending order.
Write a Python program to demonstrate the difference between lists and tuples.