Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Updating Lists | Data Types
Introduction to Data Analysis in Python
course content

Contenu du cours

Introduction to Data Analysis in Python

Introduction to Data Analysis in Python

1. Basics
2. Data Types
3. Control Flow
4. Functions and Modules
5. Introduction to NumPy

book
Updating Lists

One of the methods (function that 'belongs to' a certain object, which is a list as for now) that we can apply to our list is .append(), which adds the item to the end of the list.

123
word = ['c', 'a', 't'] word.append('s') print(word)
copy
question-icon

Drag the items of code below to make the output look like this 'My favorite holiday is Christmas'. To do it, just append the 'Christmas' string.

holiday = ['My favorite holiday is']

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

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 2. Chapitre 8

Demandez à l'IA

expand
ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

course content

Contenu du cours

Introduction to Data Analysis in Python

Introduction to Data Analysis in Python

1. Basics
2. Data Types
3. Control Flow
4. Functions and Modules
5. Introduction to NumPy

book
Updating Lists

One of the methods (function that 'belongs to' a certain object, which is a list as for now) that we can apply to our list is .append(), which adds the item to the end of the list.

123
word = ['c', 'a', 't'] word.append('s') print(word)
copy
question-icon

Drag the items of code below to make the output look like this 'My favorite holiday is Christmas'. To do it, just append the 'Christmas' string.

holiday = ['My favorite holiday is']

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

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 2. Chapitre 8
Nous sommes désolés de vous informer que quelque chose s'est mal passé. Qu'est-il arrivé ?
some-alt