declaration in test=['Python' ,10, 'Good', 25.45,[12,22,43]] :
Answers
Answered by
1
Answer:
this is correct will return no error
enjoy:)
Explanation:
Answered by
1
Complete question:
Identify the valid declaration of test:
test=['Python', 10, 'Good', 25.45, [12, 22, 43]]
(a) nested Tuple (b) nested Dictionary (c) nested List (d) nested String
Answer:
The correct option is (c) nested List
Nested Tuple:
T = ((0, 11, 22, 33), ('Hi', 'Hello'))
Nested Dictionary:
Dict = {1: 'Hi', 2: 'Hello', 3: {'A' : 'Mr.', 'B' : 'Mrs.', 'C' : 'Ms.'}}
Nested List:
test = ['Python', 10, 'Good', 25.45, [12, 22, 43]]
Similar questions
Math,
2 months ago
Social Sciences,
2 months ago
English,
2 months ago
Math,
4 months ago
Biology,
9 months ago