Skip to content

Instantly share code, notes, and snippets.

@ashutoshpipriye
Last active May 27, 2020 07:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ashutoshpipriye/75c01e7ceeed8b229cb3fd61e9dc69ad to your computer and use it in GitHub Desktop.
Save ashutoshpipriye/75c01e7ceeed8b229cb3fd61e9dc69ad to your computer and use it in GitHub Desktop.
# 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
# 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