Intro to Python
Python Symbols
Turtle Graphics
More Python
100

Ask any programmer what their first output was and the answer is probably 

What is "Hello World"

100

>

What is greater than

100

Line used to use the turtle library.

What is import turtle 

100

Code used to bring in the library for random functions

What is import random

200

The number of variables in this problem


What is one.

200

<=

What is less than or equal to.

200

Move a turtle named pat on the screen 100 pixels without drawing a line.

What is 

pat.penup()

pat.forward(100)

200

What is this called?


What is a conditional?

300

The number of indentations needed in the following problem.

if x == 1:

print("x is 1")

else:

print('x is not 1")

What is 2

300

!=

What is not equal to

300

pat.forward(100)
pat.right(90)

What is a straight line

300

The _____ ____ checks if the condition is met and repeats the code as long as the condition is True.

What is the while loop

400

Loops

for i in _________(5):

What is range

400

*=

What is multiply and


c *= a is equivalent to c = c * a

400

Move a turtle object called pat forward 300 pixels.

What is pat.forward(300)

400

A line of code that starts with a # symbol

What is a comment?

500

print(9 + 1 * 3 - 2)

What is 10

500

%

What is modulus

b % a = 1

500

pat.forward(100)

pat.right(90)

pat.forward(100)

pat.right(90)

pat.forward(100)

pat.right(90)

pat.forward(100)

pat.right(90)

What is a square

500

What are the two turtle functions we use to fill in a drawing?

What is begin_fill() and end_fill()