Last active
May 27, 2020 07:43
-
-
Save ashutoshpipriye/75c01e7ceeed8b229cb3fd61e9dc69ad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# What is the name of jane’s attribute (not method) that is referred to in the following code? | |
import turtle | |
jane = turtle.Turtle() | |
jane.forward(20) | |
print(jane.x) | |
The attribute is | |
x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# What are the names of the instances in the following code? | |
# Please put one instance per blank space and enter them in the order that the computer would read them. | |
import turtle | |
wn = turtle.Screen() | |
jazz = turtle.Turtle() | |
jazz.forward(50) | |
jazz.right(90) | |
pop = turtle.Turtle() | |
pop.left(180) | |
pop.forward(76) | |
#Answer | |
wn | |
jazz | |
pop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment