Default size of Tracy's world
400 x 400 pixels
How do we move the Turtle 50 "pixels" forward?
forward(50)
What shape does this code draw?
forward(50)
right(90)
forward(50)
right(90)
forward(50)
right(90)
forward(50)
right(90)
A square
What can we use that allows us to repeat code multiple times?
A for loop!
True or False: Turtle is a shape in python?
True
How many pixels does Tracy move at a time?
What you enter for movement.
How do we turn the Turtle right, 175 degrees?
right(175)
Time to draw a Square with a loop! Fill in the blank:
____ i in range(___):
forward(50)
right(___)
for i in range(4):
forward(50)
right(90)
If we want to write comments in Python what can we write as the first character?
"#"
What number speed() is the fastest?
speed(0)
What angle does Tracy turn at a time?
Any angle you enter
What commands can we use to create 10 circles 10 pixels in radius that are 20 pixels apart?
USE: for i in range():
for i in range(10):
circle(10)
forward(20)
What command would we write to change the color of the turtle to red?
color("red")
In Python, how can we comment out multiple lines?
"""
this is a multi
line comment
"""
When drawing "Spirals" what shape do we repeat over and over to get the spiral shape?
A circle
Command to make Tracy start drawing
pendown()
What command(s) can we use that moves the turtle backward 50 units?
backward(50) OR forward(-50)
List the three commands can we use to move the turtle without drawing on the screen? hint use goto()
penup() Lifts Turtle off screen
setpositiona(x, y) Moves turtle to x, y
pendown()
How do you use the function forward()
You write the function name and enter a number in parenthesis.
How do we tell Python what lines of code we want in a for loop?
Indentation!
Where on the screen does the Turtle start off and what direction does it face?
Center and facing right
What command allows us to reset the Turtle location to be at the center of the screen?
setposition(0, 0)
clear()
What shape does this draw?
for i in range(5):
forward(100)
right(144)
A star!
True/False: You can use letters in the forward() command?
False: numbers only
Python is named after the snake?
FALSE. Python is named for the comedy series Monty Python