Playback starts YouTube’s embedded player (privacy-enhanced mode).
How to copy a list in Python
ChannelEnthoughtDescription 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
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
- Category
- Science & Technology
- Duration
- 1:33
- Published
- November 2, 2018
- Views
- 4,616
- Likes
- 49
Tags
Share
This tutorial in other languages
- FRComment copier une liste en Python
- ESCómo copiar una lista en Python
- PTComo copiar uma lista em Python
- ITCome copiare una lista in Python
- DEWie eine Liste in Python kopieren
- NLHoe kan ik een lijst in Python kopiëren
- RUКак скопировать список в Python
- PLJak skopiować listę w Pythonie
- JAPythonでリストをコピーする方法
- ARكيفية نسخ قائمة في بيثون
- HIअजगर में सूची की कॉपी कैसे
- IDCara menyalin daftar di Python