Create copies of a list

The copy() method enables creating copies of a list:

    >>> copy_list = random_list.copy()
>>> copy_list
[4, 6, 5, 7, 5, 2, 2, 5, 7, 8]
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.129.45.92