Python Test Prep Flashcards

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/19

flashcard set

Earn XP

Description and Tags

Flashcards for Python Test Prep

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

20 Terms

1
New cards

A _ is a name that stores a value.

A name that stores a value, like a box holding data.

2
New cards

Common Python _ include int, float, str, bool, list, and dict.

int, float, str, bool, list, dict

3
New cards

_ takes data from the user.

Takes data from the user.

4
New cards

_ displays data to the user.

Displays data to the user.

5
New cards

_ are symbols that do math or compare values.

Symbols that do math or compare values.

6
New cards

Common Python _ include +, -, *, /, %, =, ==, !=, >, <.

+, -, *, /, %, =, ==, !=, >, <

7
New cards

_ let the program make decisions based on conditions.

Let the program make decisions based on conditions.

8
New cards

_ repeat a block of code until a condition is met.

Repeat a block of code until a condition is met.

9
New cards

The '_' statement exits a loop.

Exits loop.

10
New cards

The '_' statement skips to the next iteration.

Skips to the next iteration.

11
New cards

A _ is a collection of values stored in a specific order.

A collection of values stored in a specific order.

12
New cards

The _ list method adds x to the end.

Adds x to the end of a list.

13
New cards

The _ list method removes the first x.

Removes the first x from a list.

14
New cards

A _ stores data as key-value pairs.

A structure that stores data as key-value pairs.

15
New cards

A _ is a block of code that runs only when you call it.

A block of code that runs only when you call it.

16
New cards

In the function def greet(name): return _ , the function returns a greeting.

f"Hello {name}"

17
New cards

_ is a Python tool to make user-friendly interfaces for your code.

A Python tool to make user-friendly interfaces for your code.

18
New cards

gr.Interface() _

Makes an app.

19
New cards

_ always gives a string. Convert to number with int() or float()

input() always gives a string. Convert to number with int() or float()

20
New cards

The append() function _

Adds a new item to the end of a list