1.

What is the output of the following piece of code? a = ('check',) n = 2 for i in range(int(n)): a = (a,) print(a)

A. Error, tuples are immutable
B. ((‘check’,),) (((‘check’,),),).
C. ((‘check’,)’check’,)
D. ((‘check’,)’check’,) (((‘check’,)’check’,)’check’,)
Answer» C. ((‘check’,)’check’,)


Discussion

No Comment Found