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 flow control statement loops through a set of statements if a test statement continues to evaluate to True.
What is a for or while loop?
The symbol for string concatenation.
what is the plus (+) sign?
the statement to change the shape to a turtle
what is turtle.shape("turtle")
The result of 9 / 5
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)
To raise the number 5 to the power of 8, you must use the power operator. This/These symbol(s) denote the power operator.
What are two asterisks (**) ?
Data stored as a string is surrounded by these.
What are quotes?
This is used to test if something is True or False.
What is boolean operator?
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 age
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 function to output content to the screen.
What is print function?
use a loop to draw a box
what is
for i in range(4):
turtle.forward(50)
turtle.right(90)