Please enable JavaScript to use CodeHS

Intro Python Glossary

Flashcards

Course:

Module:

Lesson:

Search:

forward(a_number) Python

Command that lets you tell Tracy to move forward. In between the parentheses you need to put a number to tell Tracy how far to move forward.

left(angle) Python

turns Tracy left at a specified angle

right(angle) Python

turns Tracy right at a specified angle

speed (number 1-10) Python

determines how quickly Tracy will move through commands

Loop General

A loop is a way to repeat code in your program.

Loop

Indentation General

Indentation is the visual structure of how your code is laid out. It uses tabs to organize code into a hierarchy.

Color("red") Python

Command to change Tracy's color.

Function body Python

In Python functions, the function body is the indented block of code that comes after the `def my_function():` line. The function body is what will be executed when the function is called.

Comment Python

A message in your code that explains what is going on.

Break Down (Decompose) JavaScript

Breaking down (decomposing) your code is splitting it into more functions.

Break Down (Decompose)

Pseudocode General

Pseudocode is a brief explanation of code in plain English.

Pseudocode

Decomposition General

Decomposition is breaking your program into smaller parts.

Decomposition

Top Down Design JavaScript

Top down design is a method for breaking our program down into smaller parts.

Top Down Design

Variable General

A symbol or container that holds a value.

variable

Parameters Python

Pieces of information you can give to functions when you define them. When the function is called the arguments are the data you pass into the function's parameters. Parameter is the variable in the declaration of the function. Argument is the actual value of this variable that gets passed to the function.

If Statement General

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

If Statement

Elif Python

A control flow tool used as a second condition check after an if statement. It is a contraction of else if.

While Loop General

Lets us repeat code as long as something is true.

While Loop

If Else Statement General

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

If Else Statement

backward(a_number) Python

Command that lets you tell Tracy to move backward. In between the parentheses you need to put a number to tell Tracy how far to move backward.

right(degrees) Python

Command that tells tracy to turn right and in between parentheses, how many degrees to turn right.

left(degrees) Python

Command that tells tracy to turn left and in between parentheses, how many degrees to turn left.

input() Python

A function that prints a prompt and retrieves text from the user.

Function General

A function is like a command that you get to invent and name. It allows us to break our program into smaller parts, making the program easier to understand.