<

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x

Python Programming: Lists

Posted on
6,173 Points
173 Views
Last Modified:
Experience Level: Beginner
3:59
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

Expert Comment

by:Abdou DOUCOURE
Very simple and quick. Good micro tuto
0

Featured Post

HTML5 and CSS3 Fundamentals

Build a website from the ground up by first learning the fundamentals of HTML5 and CSS3, the two popular programming languages used to present content online. HTML deals with fonts, colors, graphics, and hyperlinks, while CSS describes how HTML elements are to be displayed.

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Measuring Server's processing rate with a simple powershell command. The differences in processing rate also was recorded in different use-cases, when a server in free and busy states.

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month