Please enable JavaScript to use CodeHS

SC Python 2 Glossary

Flashcards

Course:

Module:

Lesson:

Search:

Event JavaScript

An event is an action (such as clicking the mouse or pressing a key on the keyboard) that a program detects and uses as input.

Event

Callback Function JavaScript

A function passed as a parameter to another function in order to be called later.

Boolean Python

A True or False value

Type Conversion Python

The process of converting the value of one data type (integer, string, float, etc.) to another data type is called type conversion.

Logical Operators Python

Used to make logical associations between boolean values.

Comparison Operator Python

Used to make comparisons between values.

If Statement General

An if statement lets you ask a question to the program and only run code if the answer is true.

else statement Python

Executes code only if all conditions are false

Sequential Programming General

sequential programming refers to programs that are executed sequentially – once through, from start to finish, without other processing executing.

Non-sequential Programming General

Non-sequential Programming refers to a programming paradigm where programs can have multiple tasks being completed at once or out of sequential order.

For Loop Python

A for loop lets us repeat code a **fixed number of times.**

For Loop Python

A for loop lets us repeat code a **fixed number of times.**

Pseudorandom JavaScript

Not actually random, but appears to be random

While Loop Python

Lets us repeat code as long as something is true.

Break Python

Exits the current loop and resumes execution at the next statement.

Continue Python

Rejects all the remaining statements in the current iteration of the loop and moves the control back to the top of the loop to continue to the next iteration. Can be used in both while and for loops.

Condition General

A condition is code that you put inside an if statement or while-loop.

Condition

If Else Statement General

Control structure that lets us run either one section of code or another depending on a test.

If Else Statement

Comparison operator General

Used to make comparisons between values.

comparison operator