Python-Interview-Questions

Q.1. Explain the output of the following piece of code-

x=[‘ab’,’cd’]

print(len(map(list,x)))

Q.2. Explain the output of the following piece of code-

tuple1=(123,‘John’)
tuple1*=2
print(tuple1)

1 Like