Python Ch4

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

body

The block in a compound statement that follows the header.

condition

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

base case

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

infinite recursion

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

block

A group of consecutive statements with the same indentation.

compound statement

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

conditional statement

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

prompt

A visual cue that tells the user to input data.

boolean expression

An expression that is either true or false.

modulus operator

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

logical operator

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

comparison operator

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

nesting

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

recursion

The process of calling the function that is currently executing.


संबंधित स्टडी सेट्स

J: Chapter 23: Disruptive Behavior Disorders

View Set

EMT Ch 37: Hazardous Materials, Multiple-Casualty Incidents, and Incident Management

View Set

Security+ SY0-601 Certification Practice Exam

View Set