Q. What would following statements print ? Given that we have tuple = ('t', 'p', 'I') 

(a) print("tuple") 

(b) print(tuple(“tuple")) 

(c) print (tuple)


ANSWER =


A = 'tuple'

B  =Error (Because we have make tuple as a variable but we use it in print statement as a function.  )
 
C = ('t','p','l')


4 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post