Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Get Familiar with Lists | Introduction to Python 1/2
Introduction to Python for Data Analysis
course content

Course Content

Introduction to Python for Data Analysis

Introduction to Python for Data Analysis

1. Introduction to Python 1/2
2. Introduction to Python 2/2
3. Explore Dataset
4. Becoming an Analyst

Get Familiar with Lists

Another crucial data type is called list! It is used to store variables:

list = [1, 3, 6, 'a', True]

You just need to put variables inside square brackets. You don't have restrictions, so in one list, you can store numbers, strings, and boolean data; that's all!

It is necessary to know how to get a specific element from the list to work with lists.

The list's first item has the index 0, the next one 1, and so on.

If we start from the end, the last item has the index -1, and the second-to-last has the index -2, and so on.

question-icon

Using only negative indexation extract the symbols `c` `o` `d` `e` from the `list_code`. Please do not put spaces into your code.

list_code = ['c', 'o', 'd', 'e']
c = list_code[
]
o = list_code

d = list_code

e =

Click or drag`n`drop items and fill in the blanks

Everything was clear?

Section 1. Chapter 12
We're sorry to hear that something went wrong. What happened?
some-alt