1.

Is the following piece of code valid? >>> a=(1,2,3) >>> b=('A','B','C') >>> c=zip(a,b)

A. Yes, c will be ((1,2,3),(‘A’,’B’,’C’))
B. Yes, c will be ((1,2,3),(‘A’,’B’,’C’))
C. No because tuples are immutable
D. No because the syntax for zip function isn’t valid
Answer» B. Yes, c will be ((1,2,3),(‘A’,’B’,’C’))


Discussion

No Comment Found