How to combine two lists in Python

Описание к видео How to combine two lists in Python

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  

Комментарии

Информация по комментариям в разработке