Python! (copy)

call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/24

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 8:41 PM on 8/30/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat
Add student to class section state
Add studentsNo students in these sections. Invite them to track progress!

25 Terms

1
New cards

Python Interpreter

Translates code line by line into machine code, running it through the CPU.

2
New cards

Python IDLE

An interface used to run command line interface code; includes a blank editor and a Python shell.

3
New cards

Function Definition Syntax

Functions are defined using the keyword 'def', followed by the function name and parentheses.

4
New cards

Formal Parameter

A variable defined in a function's parameter list that can take input values.

5
New cards

String Literals

Fixed string values assigned to parameters when a function is called.

6
New cards

Print Function

Used to display outputs; can combine multiple data types including variables and strings.

7
New cards

Type Function

Checks the data type of a variable and returns the result.

8
New cards

Input Function

Stores user inputs as strings, prompting for input display.

9
New cards

Int Function

Converts strings to integers, turning text input into number data.

10
New cards

Float Function

Converts strings to floating-point numbers.

11
New cards

Str Function

Converts other data types into strings.

12
New cards

.format Method

Used to concatenate strings and variables in a formatted way.

13
New cards

Return Statement

Returns the result of a function's computations back to the caller.

14
New cards

List Length Function (len)

Returns the number of elements in a list.

15
New cards

List Append Method

Adds a single item to the end of a list.

16
New cards

List Clear Method

Removes all items from a list.

17
New cards

For Loop

Used to iterate over a sequence such as a list.

18
New cards

Range Function

Generates a sequence of numbers, allowing for iteration.

19
New cards

Sorted Function

Sorts a list or an iterable in ascending order by default.

20
New cards

Data Types

Different categories of data like strings, integers, floats, booleans, and lists.

21
New cards

Boolean Type

Represents truth values: True or False.

22
New cards

Variable Naming Rules

Variables cannot start with a digit and must be case sensitive.

23
New cards

Parameters in Functions

Formal parameters are defined in the function, while arguments are the values passed to them.

24
New cards

Static Variables

Constant variables typically defined globally and written in capital letters.

25
New cards

Comments (#)

Used to create notes in code that have no effect on execution.