Python Turtle Flashcards
what does turtle.forward
go forward
what does turtle.backwards
go backwards
what does turtle.right
turn right
what does turtle.left
turn left
what does turtle.penup()
lifts pen up so you can move the turtle without drawing
what does turtle.pendown()
drops the pen back onto the screen so you can draw
what does turtle.fillcolor(“brown”)
changes the fill color to brown (or other color)
what does turtle .pencolor(“red”)
changes the pen color to red (or other color)
what does turtle.begin_fill()
begins to fill the shape
what does turtle.end_fill
end the filling sequence
What is a variable
a variable is a location in memory in which you can temporarily store text or numbers
How to use a variable
print (“what is your name?”)
firstname = input()
print (“hello,”,firstname)
What are variables used for
It is used like an empty box or the memory function on a calculator
What is string data
holds alphanumeric data as text
what is integer data
holds whole numbers