<filename>Day_05/day_5_OOP.py<gh_stars>1-10
from turtle import Turtle, Screen
import prettytable


timmy = Turtle()
print(timmy)
timmy.shape("turtle")
timmy.color("coral")
timmy.forward(100)

# turtle has certain attributes as an object
# use object.attribute to get it

my_screen = Screen()
print(my_screen.canvheight)


# data associated with object, like functions
# syntax object.method

my_screen.exitonclick()



<filename>Day_05/day_5_OOP.py<gh_stars>1-10
from turtle import Turtle, Screen
import prettytable


timmy = Turtle()
print(timmy)
timmy.shape("turtle")
timmy.color("coral")
timmy.forward(100)

# turtle has certain attributes as an object
# use object.attribute to get it

my_screen = Screen()
print(my_screen.canvheight)


# data associated with object, like functions
# syntax object.method

my_screen.exitonclick()



# turtle has certain attributes as an object # use object.attribute to get it # data associated with object, like functions # syntax object.method