Chapter 4: Terms (Python)

Chapter 4: Terms (Python)

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

condition

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

7 years ago

Date created

Mar 1, 2020

Cards (14)

Section 1

(14 cards)

condition

Front

The boolean expression in a conditional statement that determines which branch is executed.

Back

compound statement

Front

A statement that consists of a header and a body. The header ends with a colon (:). The body is indented relative to the header.

Back

logical operator

Front

One of the operators that combines boolean expressions: and, or, and not.

Back

base case

Front

A branch of the conditional statement in a recursive function that does not result in a recursive call.

Back

body

Front

The block in a compound statement that follows the header.

Back

block

Front

A group of consecutive statements with the same indentation.

Back

recursion

Front

The process of calling the function that is currently executing.

Back

nesting

Front

One program structure with another, such as a conditional statement inside a branch of another conditional statement.

Back

infinite recursion

Front

A function that calls itself recursively without ever reaching the base case. Eventually, an infinite recursion causes a runtime error.

Back

modulus operator

Front

An operator, denoted with a percent sign (%) in python, that works on integers and yields the remainder when one number is divided by another.

Back

prompt

Front

A visual cue that tells the user to input data.

Back

comparison operator

Front

one of the operators that compares two values: ==, !=, >, <, >=, and <=.

Back

boolean expression

Front

An expression that is either true or false.

Back

conditional statement

Front

A statement that controls the flow of execution depending on some condition.

Back