HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to copy a list in Python

4,616 views November 2, 2018 1:33

Watch on YouTube
ChannelEnthought

Description from the creator

In this short tutorial, you will learn how to create a copy of a list in Python, and the different ways to do this in Python 2 and Python 3. Want to learn more? See our courses at goo.gl/83K41A.

Read the documentation for lists here: docs.python.org/3/library/stdtypes.html#list

Code from video:
*****************
company = ['julia', 'erick', 'dillon']
company_copy = company.copy()
del company_copy[:]
company_copy
company
company_copy = list(company)
company_copy

Connect with us!
*****************
twitter.com/enthought
facebook.com/Enthought/
linkedin.com/company/enthought

About this tutorial

Enthought published this 1:33 video tutorial on November 2, 2018. It has been watched 4,616 times on YouTube.

Channel
Enthought
Duration
1:33
Published
November 2, 2018
Views
4,616
Likes
49

Tags

Share

This tutorial in other languages