InterviewSolution
Saved Bookmarks
| 1. |
Identify Which of the following are List, Tuple and class?(a) arr [1, 2, 34] (b) arr (1, 2, 34)(c) student [rno, name, mark](d) day = (‘sun’ , ‘mon’, ‘tue’ , ‘wed’)(e) x= [2, 5, 6.5, [5,6], 8.2](f) employee [eno, ename, esal, eaddress] |
|
Answer» List: (a) arr [1, 2, 34] (e) x= [2, 5, 6.5, [5,6], 8.2] Tuple: (b) arr (1, 2, 34) (d) day = (‘sun’ , ‘mon’, ‘tue’ , ‘wed’) Class: (c) student [mo, name, mark] (f) employee [eno, ename, esal, eaddress] |
|