A question about assignments | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

A question about assignments

What is difference between below assignment operations? x,y=3,4 x,y=(3,4) x,y=[3,4]

10th May 2018, 10:43 AM
Yusuf
Yusuf - avatar
2 Answers
0
(3, 4) is a tuple and it's an immutable data type. [3, 4] is a list and it's a mutable data type
27th Nov 2022, 10:59 AM
Anonymous
Anonymous - avatar
+ 1
Thank you for responding 4 years later but now I have good knowledge of python. Anonymous
27th Nov 2022, 11:06 AM
Yusuf
Yusuf - avatar