Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing


  • 3 years ago

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!

  • This Question is Open
  1. sharish
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

  2. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy