Q. Are the following two assignments same ? Why / why not ? (b) T3 = (3, 4, 5) T4 = ((3, 4, 5)) (a) T1 =3, 4, 5 T2 = (3,4 ,5)




ANSWER =


A   t1==t2
      >>> True
      Because t1 and t2 have same value.


B  t3 == t4
     >>> False
     Because T3 have a tuple but T4 have a nested tuple.

Post a Comment

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

Previous Post Next Post