Ask any programmer what their first output was and the answer is probably
What is "Hello World"
>
What is greater than
Line used to use the turtle library.
What is import turtle
Code used to bring in the library for random functions
What is import random
The number of variables in this problem
What is one.
<=
What is less than or equal to.
Move a turtle named pat on the screen 100 pixels without drawing a line.
What is
pat.penup()
pat.forward(100)
What is this called?
What is a conditional?
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
!=
What is not equal to
pat.forward(100)
pat.right(90)
What is a straight line
The _____ ____ checks if the condition is met and repeats the code as long as the condition is True.
What is the while loop
Loops
for i in _________(5):
What is range
*=
What is multiply and
c *= a is equivalent to c = c * a
Move a turtle object called pat forward 300 pixels.
What is pat.forward(300)
A line of code that starts with a # symbol
What is a comment?
print(9 + 1 * 3 - 2)
What is 10
%
What is modulus
b % a = 1
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
What are the two turtle functions we use to fill in a drawing?
What is begin_fill() and end_fill()