I tried to import turtle and I tried to write sc turtle Screen but it gives attribute error in these

0 votes
import turtle
  
# make screen object
# and set size
sc = turtle.Screen()
sc.setup(400,300)
  
# make turlte object
t1=turtle.Turtle(shape='square')
  
# do some motion with properties
t1.color("red")
t1.circle(50)
  
# make another turlte object
t2=turtle.Turtle(shape='circle')
  
# do some motion with properties
t2.color("green")
t2.circle(40)
  
# get all turtle objects on screen
print(sc.turtles())
Aug 6, 2021 in Python by anonymous

edited 5 days ago 8 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP