Advertisements
Advertisements
Question
What is a List? Give an example.
Advertisements
Solution
The list is constructed by placing expressions within square brackets separated by commas. An example for List is [10, 20].
APPEARS IN
RELATED QUESTIONS
A sequence of immutable objects is called ______
Which of the following allows to name the various parts of a multi-item object?
What is a Tuple? Give an example.
What is a List? Why List can be called as Pairs. Explain with a suitable example?
What are the different ways to access the elements of a list? Give example.
Identify Which of the following is List, Tuple, and class?
arr [1, 2, 34]
Identify Which of the following is List, Tuple, and class?
arr (1, 2, 34)
Identify Which of the following is List, Tuple, and class?
day = (‘sun’, ‘mon’, ‘Tue, ‘wed’)
Identify Which of the following is List, Tuple, and class?
x = [2, 5, 6.5, [5, 6], 8.2]
Identify Which of the following is List, Tuple, and class?
employee [eno, ename, esal, eaddress]
