Sign InCoursewareNuggetsTutorials AboutClassesCodePad

Shapes Shapes Shapes

# Squirt is a turtle who likes shapes. import turtle turtle.Screen().setup(800, 800) squirt = turtle.Turtle() # Draw a triangle with perimeters of 300. # Draw a square with perimeters of 400. # Draw two rectangles both with perimeters of 400. # Bonus Point: Draw a snowman with a face and a body (a smaller circle on top of a bigger circle). # The face has two eyes (two small black circles), one nose (one small triangle in the middle), and one mouth (one red small curve under the nose).
© CS Wonders·About·Classes·Cheatsheet