Informatics Practices
Which of the following statements is correct about list?
- List can contain values of mixed data types.
- List can contain duplicate values.
- A list with no elements is called an empty list.
- All of these
Python List Manipulation
3 Likes
Answer
All of these
Reason — Lists in Python can contain values of mixed data types, such as integers, strings, and floats. They can also contain duplicate values, meaning the same value can appear more than once in the list. Additionally, a list with no elements is called an empty list, represented as [].
Answered By
2 Likes
Related Questions
Consider the following statement:
List = ['h', 'o', 'i']The length of the above list is:
- 5
- 3
- 0
- None of these
The list L1 contains [3, 4, 5, 6, 6, 8, 0]. What will be the output of the following expression?
print(L1 [-1])- 0
- 3
- 5
- 8
Which operator can be used with list?
- in
- not in
- Both 1 & 2
- Arithmetic Operators only
Which of the following commands will create a list?
- List1=list ()
- List1= []
- List1=[1,2,3,"a"]
- All of these