InterviewSolution
Saved Bookmarks
| 1. |
What type of data is: a=[(1,1),(2,4),(3,9)]?(a) Array of tuples(b) List of tuples(c) Tuples of lists(d) Invalid typeThe question was asked during a job interview.Question is taken from Tuples in portion Tuples and Sets of Python |
|
Answer» CORRECT option is (b) LIST of TUPLES Explanation: The variable a has tuples ENCLOSED in a list making it a list of tuples. |
|