CSC108H5 Programming Flashcard Study Set Python

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

1/13

flashcard set

Earn XP

Description and Tags

Exam practice

Last updated 2:08 AM on 9/18/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

14 Terms

1
New cards

Program

A set of instructions that tells the computer what to do.

2
New cards

What do Python extension files end with?

.py extension

3
New cards

String

A string is a sequence of characters used to handle textual data.

4
New cards

Immutable

Immutable data types are data types that cannot be changed.

5
New cards

Immutable Data Types List

String, tuple, ints, floats, complex, bool

6
New cards

Mutable Data Types List

Lists, dictionaries, and sets.

7
New cards

Functions

Functions are blocks of reusable code when called.

8
New cards

DeMorgan’s Law Formula

not (a and b) == not a or not b
not (a or b) == not a and not b

9
New cards

Append Method Syntax Description

my_list.append(item)
my_list = List

item: Required; otherwise, you get an error!


10
New cards

What does .append() do in Python?

The .append() method is a built-in function that is used to add a single item to the very end of the list.

11
New cards
12
New cards
13
New cards

What does .extend() do in Python?

The list method .extend() is a built-in function that adds all the elements of an iterable such as a (string, set, tuple, or list) to the end of the current list.
It changes the original list in place and returns None.

14
New cards