[Tutor] lists, name semantics

Bill Allen wallenpb at gmail.com
Sat Apr 18 05:16:27 CEST 2015


If I have a list defined as my_list = ['a','b','c'], what is the is
differnce between refering to it as my_list or my_list[:]?   These seem
equivalent to me.  Is that the case?  Is there any nuance I am missing
here?   Situations where one form should be used as opposed to the other?

Thanks,
Bill Allen


More information about the Tutor mailing list