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

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)
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']

クリックたたはドラッグ`n`ドロップしお空欄を埋めおください

すべお明確でしたか

どのように改善できたすか

フィヌドバックありがずうございたす

セクション 2. 章 8

AIに質問する

expand

AIに質問する

ChatGPT

䜕でも質問するか、提案された質問の1぀を詊しおチャットを始めおください

some-alt