

MCQOPTIONS
Saved Bookmarks
1. |
The error displayed in the code shown below is: import itertools l1=(1, 2, 3) l2=[4, 5, 6] l=itertools.chain(l1, l2) print(next(l1)) |
A. | ‘list’ object is not iterator |
B. | ‘tuple’ object is not iterator |
C. | ‘list’ object is iterator |
D. | ‘tuple’ object is iterator |
Answer» C. ‘list’ object is iterator | |