Ask your own question, for FREE!
MIT 6.189 Intro to Programming (Python) 24 Online
OpenStudy (anonymous):

I am using python 2.7. Suppose i create a list within a list. If i copy the whole thing using slicing operator (like list2=some_list[:] ) and make changes to the newly created list, the changes are reflected back to the original list. (But extend and append functions work perfectly! ) I can't seem to figure out why.. help!

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!