๐Ÿ Core Python Commands (with Explanation)

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/6

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 11:25 PM on 3/29/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

7 Terms

1
New cards

A list is used to store multiple items in one variable. Items are written inside square brackets [ ] and separated by commas. A list is created using _______________

my_list = ["item1", "item2"]

2
New cards

The _______________ function adds a new item to the end of the list.

append()

3
New cards

The _______________ function deletes an item from the list by value.

remove()

4
New cards

The function used to display output on the screen is _______________.

print()

5
New cards

Comments are notes written for humans to read and are ignored by Python when running the code. This is denoted by _______________.

#

6
New cards

To get the number of items in a list, you use the _______________ function.

len()

7
New cards

A loop goes through each item in the list one by one. The syntax for traversing a list looks like _______________.

for item in my_list:
print(item)

Explore top flashcards

flashcards
A&P Chapter 11: Part 1
49
Updated 351d ago
0.0(0)
flashcards
Medical Instruments
46
Updated 1214d ago
0.0(0)
flashcards
European Capitals
43
Updated 1124d ago
0.0(0)
flashcards
Exam 1
121
Updated 1148d ago
0.0(0)
flashcards
100 Verbs
70
Updated 1217d ago
0.0(0)
flashcards
A&P Chapter 11: Part 1
49
Updated 351d ago
0.0(0)
flashcards
Medical Instruments
46
Updated 1214d ago
0.0(0)
flashcards
European Capitals
43
Updated 1124d ago
0.0(0)
flashcards
Exam 1
121
Updated 1148d ago
0.0(0)
flashcards
100 Verbs
70
Updated 1217d ago
0.0(0)