How to add an item to a list in Python

Опубликовано: 08 Октябрь 2024
на канале: Enthought
24,555
161

In this short tutorial, you will learn how to add an item to a list in Python using insert and append. Want to learn more? See our courses here https://goo.gl/sZVpXE.

Read the documentation for lists here: https://docs.python.org/3/library/std...

Code from video:
*****************
company = ['julia', 'erick', 'dillon']
company.insert(0, 'jill')
company
company.append('alex')
company

Connect with us!
*****************
  / enthought  
  / enthought  
  / enthought