Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 16 Online
OpenStudy (anonymous):

On quiz 1, the solutions say that the code in Q7 is a valid way of copying a list. I'm really not convinced by this - surely if the list contains mutable objects then this isn't safe, as you could edit L by changing result? I'll try and post code to explain what I mean, can someone work out whether I've misunderstood something? Thanks!

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!