You can slice but not change tupleļ¼ŒIs that right? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

You can slice but not change tupleļ¼ŒIs that right?

12th Jul 2016, 4:59 AM
蓝ē¾½ē®­ļ¼ˆFlouseļ¼‰
蓝ē¾½ē®­ļ¼ˆFlouseļ¼‰ - avatar
4 Answers
+ 1
yes.you can get slice of tuple but can not change tuple after you create it.have a nice day;-)
12th Jul 2016, 9:32 AM
vetarikisa
+ 1
tuples are immutable so they can't be change after declaration but lists are mutable and hence can be changed
27th Jul 2016, 5:36 AM
Kshitij Mani
Kshitij Mani - avatar
0
Spot on
12th Jul 2016, 9:31 AM
Gershon Fosu
Gershon Fosu - avatar
0
that's what is mentioned at the lesson
18th Jul 2016, 3:03 PM
Subhankar Paul
Subhankar Paul - avatar