Entry Level Python coding quiz covering Python Turtle commands. The coloring is specific to use of TYNKER free Python IDE enviornment for coding.
What is the first line of code you MUST have to start any Turtle program? (leave out the Comment)
To add a comment to a line of code you must start with this character to GREY out the comment
The second line of code is where you create a variable name for your turtle. Write the code to create a variable NAMED bob for your Turtle.(you must use my name provided for this quiz)
Write a line of code to make a turtle named bob move forward 20 pixels.
write a line of code to make a turtle named bob turn right 58 degrees
Write the line of code to RESET the turtle named bob and put the turtle back to start with a clear screen
Write the line of code to lift the pen of your turtle named bob so that he does not write
What shape will the following code make?
from turtle import Turtle
bob = Turtle()
for count in range(8):
bob.forward(20)
bob.right(45)
1) from turtle import Turtle #selects Turtle library for coding
2) bob = Turtle( #named turtle object
3) bob.color('oange')
4) bob.forward(200) #forward number of pixels
5) boB.right(90) # turns angle degrees
6) bob.forward(200)
7) bob.right(90)
8) bob.forward(200)
9) bob.right(90)
10) bob.forward(200)
11) bob.penup()
12) bob.forward(30)
13) bob.pedown
14) bob.coloor('grean')
15) for count in range(3):
16) Bob.forward(45)
17) bob.let(120)
Which lines in the above code have errors in them? (HINT THERE ARE 5)
Correct Line 14 in the above code so that a Turtle named bob changes to green color