Section 1

Preview this deck

if else statement

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

6 years ago

Date created

Mar 1, 2020

Cards (26)

Section 1

(26 cards)

if else statement

Front

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

Back

While loop

Front

lets us repeat code as long as something is true

Back

Function body

Front

The indented block of a code that comes after the def my_function(): line

Back

Indentation

Front

the visual structure of how your code is laid out

Back

Precondition

Front

Assumptions we make about what must be true before the function is called

Back

Start function

Front

The function that is called when you click run

Back

world

Front

a grid that the code affects

Back

Programming style

Front

The way your code is written

Back

Top down design

Front

a method for breaking our programming down into smaller parts

Back

Define a function

Front

To teach the computer a new command and explain what it should do when receiving the command

Back

Command

Front

The instructions you give

Back

Loop

Front

a way to repeat code in your program

Back

Fencepost Problem

Front

A problem when using a while loop where you forget one action at the beginning of the end

Back

Parenthesis

Front

( and )

Back

break down

Front

splitting your code into more functions

Back

PostCondition

Front

What should be true after the function is called

Back

Decomposition

Front

Breaking your program into smaller parts

Back

Control structure

Front

Lets us change the flow of the code

Back

For loop

Front

Lets us repeat code a fixed number of times

Back

Curly Bracket

Front

An open curly bracket is { and a close curly bracket is }

Back

Lower Camel Case

Front

a naming convention where the first letter is lower case, and each subsequent start of a word is upper case

Back

Condition

Front

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

Back

Comment

Front

A message in your code that explains what is going on

Back

Call a function

Front

giving the command, so the computer will run the code for that function

Back

if statement

Front

Lets you ask a question to the program and only run code if the answer is true

Back

Read like a story

Front

Good composition that makes the code easy to read

Back