<

Python Programming: Lists

Posted on
6,180 Points
180 Views
Last Modified:
Published
Experience Level: Beginner
3:58
Learn the basics of lists in Python.

Video Steps

1. Lists, as their name suggests, are a means for ordering and storing values.

2. Lists are declared using brackets; for example: t = [1, 2, 3]

3. Lists may contain a mix of data types; for example: t = ['string', 1, True]

4. Lists may be nested, for example: t = [ 'string', [1, True]]

5. List elements are accessed by index; for example: t[0]

6. The slice method is used to access a specific range of elements within a list; for example: t[1:3]

0
Author:Dototot
1 Comment

Comment

by:Abdou DOUCOURE
Very simple and quick. Good micro tuto
0
In a recent question here at Experts Exchange, a member wants to enhance an AutoHotkey script that performs "Title Case" conversion. The enhancement is to allow specification of words that are excluded from the capitalization (conjunctions and prepo…
In this article we will see how Integrated Surveillance or Surveillance model plays a key role to identify risk in the financial sector .

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month