Vocabulary
This command does...
Debug
Data type by color
T or F
100

A number that has a decimal or a fraction.

What is a float? 

100

stage.set_background("underwater")

Sets the stage background to the underwater image in the library. 

100

"choice" = sprite.ask("what is your favorite color")

Remove the quotes around choice.

100

Orange

What is a variable? 

100

choice = sprite.ask("pick a number between 1-20")

At this point, the user's response can be used in a movement command. 

False 

first it must be cast 

choice_num = int(choice)

200

The act of combining multiple strings and/or variables inside one text display or say command.

What is concatenation?

200

sam.say("TOO CLOSE!!")

Assigns this say command to the sprite sam. 

200

sprite = codesters.Sprite("person4")

fav_sport = sprite.ask("What's your favorite sport?")

sprite.say("My favorite sport is " fav_sport)

sprite = codesters.Sprite("person4")

fav_sport = sprite.ask("What's your favorite sport?")

sprite.say("My favorite sport is " + fav_sport)

200

Grey

What is comment code?

200

square_size = 100

# sprite = codesters.Square(x, y, width, "color")

square1 = codesters.Square(-150, -50, square_size, "red")

# sprite = codesters.Square(x, y, width, "color")

square2 = codesters.Square(-50, 50, square_size, "orange")

# sprite = codesters.Square(x, y, width, "color")

square3 = codesters.Square(50, -50, square_size, "yellow")

# sprite = codesters.Square(x, y, width, "color")

square4 = codesters.Square(150, 50, square_size, "green") 

Given this code, the argument for the squares' widths would need to be changed for all four squares individually. 

False

Change square_size = 

300

Type of error where the program runs, but does not produce the desired result.

What is a logic error?

300

sprite.set_size(0.33)

Sets the sprites size to ~one third of its original size. 

300

circle = codesters.Circle(0, 0, 150, my_color)

my_color = "purple"

my_color = "purple"

circle = codesters.Circle(0, 0, 150, my_color)

300

Green

What is a string?

300

Functions (click events for example) work even without any code inside them.

False

400

The area where you write code on codesters.com

What is the code editor?

400

def click(bear):

    sprite.move_up(50)

    sprite.move_down(50)

    sprite.say("Don't poke me!")

    # add other actions...

bear.event_click(click)

Assigns the click event to the sprite with the variable name bear

400

my_circle = codesters.Circle(0, 100, 90 "cyan")

my_circle = codesters.Circle(0, 100, 90, "cyan")

400

White

What is dot-notation? 

400

You can find projects from Mr. Barlas and classmates under class projects. 

True

500

These store user responses to ask commands.

What are input variables? 

500

num_integer = int(num)

Casts a variable stored as a string into an integer.

500

magic_number = random.randint(1,100)

num_display = codesters.Display(my_var, 0, 0)

magic_number = random.randint(1,100)


num_display = codesters.Display(magic_number, 0, 0)

500

Blue

What is an integer or a float? 

500

Variables ALWAYS appear to the left of the = sign

False