a.copy() python code example Example: python copy list a=[1,2,3,4] b=a[:] ''' now b has all elements of a'''