This character denotes the division operator.
What is the forward slash (/) ?
This common variable type stores letters, numbers, and symbols.
What is a string?
This often used statement checks the validity of a statement before creating a branch.
What is an 'if' statement?
To comment a line in Python, you use this/these character(s).
What is a pound sign (#) ?
the first statement that tells the computer you will be using turtle
what is:
import turtle
These characters have the highest order of operation in Python.
What are parenthesis?
This variable type stores decimal numbers.
What is a float?
This loops through a set of statements if a test statement continues to evaluate to True.
What is a while loop?
This outputs things on the screen
What is print function?
How would you rename your turtle to 'George'>?
What is
import turtle as George
or
g = turtle.Turtle()?
What would
answer= int(9/5)
print(answer)
return?
What is 1?
This function allows user input text to be assigned to a variable.
What is input()?
What is wrong with this code:
x = 100
for n in range(1,5):
x = x*n print x
what is the line after for i in range needs to be indented and print(x)
What is wrong with this code:
favorite = input("What is your favorite ice cream flavor?")
print("My favorite ice cream flavor is: " favorite)
what is:
favorite = input("What is your favorite ice cream flavor?")
print("My favorite ice cream flavor is: " + favorite)
the command to move the turtle forward 50 pixels
what is turtle.forward(50)
answer= 9/1
print (float(answer))
What is 9.0?
Data stored as a string is surrounded by these.
What are quotes?
Technically, a while loop is an infinitely repeating _____________.
What is if statement?
Convert Integer to String for this code:
age = 18
string = "Hello, I am " + age + " years old"
what is:
age = 18
print("Hello, I am " + str(age) + " years old")
name the turtle bob
bob=turtle.Turtle()
Denoted as '%', this operator returns the remainder of a division operation.
What is the modulus?
Write a simple code that assigns 29 to the variable
what is age=29?
The following Python code loops forever. What is it missing?
n = 10
while n<100:
print(n)
What is n=n*10?
The symbol for string concatenation.
what is the plus (+) sign?
write the loop that would output a star with 5 points, where the distance between the points is 30 and where the turtle turns 215 degrees
what is
for i in range (5):
turtle.forward(20)
turtle.left(215)