What will be the output of the following Python code? [code] >>> import collections >>> a=collections.namedtuple('a',['i','j']) >>> obj=a(i=4,j=

Lê Minh

Member
What will be the output of the following Python code?
Code:
>>> import collections
>>> a=collections.namedtuple('a',['i','j'])
>>> obj=a(i=4,j=7)
>>> obj
A. a(i=4, j=7)
B. obj(i=4, j=7)
C. (4,7)
D. An exception is thrown
 

Tìm kiếm

Back
Top