Vocabulary
This command does...
Data Type By Color
This command does...(2)
Debugging
100

Nesting

The process of placing code inside another command. Four spaces or one tab. 

100

stage_image = stage_list[1]

Stores the second item in stage_list as the value of stage_image

100

Orange 

Variables

100

my_display = codesters.Display(rand_num, -0, 0)

Displays the value of rand_num at 0, 0

100

def whiskers():

    tiger.glide_to(50, -150)

    stage.wait(2)

    whiskers.say("Meow.")

    stage.wait(2)

    whiskers.say("Meow. Meow.")

    stage.wait(2)

    whiskers.say("Meow.")

    tiger.flip_right_left()

    tiger.say("mew, mew")

    tiger.glide_to(300, -150)


whiskers()

Variable names and function names can't be the same

200

Function

Contains a block of code that can be called at any point later in the program, any number of times

200

  timer *= 0.8

Multiplies timer by 0.8

200

Blue

Integers and Floats

200

savings = sum(coins)

Stores the total value of all the items in coins inside of savings

200

rainbow = ["red", "orange", "yellow", "green", "black"]


index = rainbow.index(5)

Index start with 0. This command is asking for the 6th item in a 5 item list.

300

While loop

Runs until a condition is met or a specific value is held inside the test variable

300

random.randint(1, 10)

Generates a random number between 1 and 10.

300

Grey

Comment Code

300

if "#" not in hidden_list:


 Runs the code nested inside if there is not # in hidden_list

300

def 3laps():

    stage.set_background("soccerfield")

    sprite.say("I try to practice every day.")

    sprite.move_left(200)

    sprite.move_right(400)

    sprite.move_left(400)

    sprite.move_right(400)

    sprite.move_left(400)

    sprite.move_right(200)

3laps()

Function names can't start with a number 

400

Index

The position of an item in a list

400

list.append("shark")

Adds a shark sprite to the end of the list. 

400

Green

Strings

400

purpose.split()

Splits the value stored in purpose into a list of individual letters

400

to_do = ["finish homework", "clean room", "practice instrument"]


my_list.remove("finish homework")

Remove command is assigned to my_list instead of to_do

500

console

a programming environment that only inputs & outputs text

500

len()

Calculates the length of a sting or list. 

500

White

Dot Notation 

500

str(quotient)

Converts the value of quotient to a string

500

def number_generator():

    rand_num = random.randint(1,100)

    return rand_num


my_display = codesters.Display(rand_num, 0, 150)

There is no return variable storing the value created in the function. See correct code below

def number_generator():

    rand_num = random.randint(1,100)

    return rand_num


my_num = number_generator()


my_display = codesters.Display(my_num, 0, 150)