EMERGING TRENDS IN COMPUTING
ARTIFICIAL INTELLIGENCE AND MACHINE LEARNING
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
What type of data is:a=[(1, 1), (2, 4), (3, 9)]?
|
Array of tuples
|
|
List of tuples
|
|
Tuples of lists
|
|
Invalid type
|
Explanation:
Detailed explanation-1: -What type of data is: a=[(1, 1), (2, 4), (3, 9)]? Explanation: The variable a has tuples enclosed in a list making it a list of tuples.
Detailed explanation-2: -1 Answer. The correct answer to the question “Which of the following is a Python Tuple” is option (B). (1, 2, 3). Because in Python, Tuple is represented in round brackets.
Detailed explanation-3: -1 Answer. For explanation: A tuple of one element must be created as (1, ).
There is 1 question to complete.