How to combine two lists in Python

Опубликовано: 09 Октябрь 2024
на канале: Enthought
20,532
106

In this short tutorial, you will learn how to combine two lists together in Python using extend (in place) and concatenation (out of place). Want to learn more? See our courses at https://goo.gl/NehPch.

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

Code from video:
*****************
company = ['julia', 'erick', 'dillon']
subsidiary = ['michael', 'eric', 'michael']
company + subsidiary
company.extend(subsidiary)
company

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