how to copy a list in ptyhong code example Example: python copy list a=[1,2,3,4] b=a[:] ''' now b has all elements of a'''