How to slice items out of a list in Python

Описание к видео How to slice items out of a list in Python

In this short tutorial, you will learn how to slice items out of a list in Python, and a little bit about slicing syntax in general. Want to learn more? See our courses at https://goo.gl/rmWKqk.

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

Code from video:
*****************
company = ['julia', 'eric', 'dillon']
company[0:2]
company[0:-1]
company[::2]

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

Комментарии

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