assign2.py - rudolph.right(y rudolph.forward(1#End of...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
#Assignment 2 #Draw a Snowman #Name: Brittany Wojciehowski import turtle import math wn = turtle.Screen() wn.bgcolor("blue") rudolph = turtle.Turtle() rudolph.setpos(0,0) rudolph.up() #Belly rudolph.forward(70) rudolph.down() rudolph.left(90) x = (math.pi*80.00/360) for draw in range(1,600,1): rudolph.left(x) rudolph.forward(1) #End of Belly #Right Arm rudolph.up() rudolph.home() rudolph.forward(72) rudolph.pensize(4) rudolph.down() rudolph.forward(100) rudolph.up() rudolph.right(180) rudolph.forward(10) rudolph.right(135) rudolph.down() rudolph.forward(10) rudolph.up() rudolph.right(135) rudolph.forward(15) rudolph.right(135) rudolph.down() rudolph.forward(10) #Left Arm rudolph.up() rudolph.home() rudolph.right(180) rudolph.forward(94) rudolph.pensize(4) rudolph.down() rudolph.forward(100) rudolph.up() rudolph.right(180) rudolph.forward(10) rudolph.right(135) rudolph.down() rudolph.forward(10) rudolph.up() rudolph.right(135) rudolph.forward(15) rudolph.right(135)
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
rudolph.down() rudolph.forward(10) #Bottom rudolph.up() rudolph.home() rudolph.right(95) rudolph.forward(83) rudolph.left(90) rudolph.pensize(1) rudolph.down() y = (math.pi*50.00/360) for draw in range(1,825,1):
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: rudolph.right(y) rudolph.forward(1) #End of Bottom #Head rudolph.up() rudolph.goto(0,190) rudolph.down() z = (math.pi*120.00/360) for draw in range(1,361,1): rudolph.right(z) rudolph.forward(1) #Tophat (optional) rudolph.up() rudolph.left(25) rudolph.pensize(4) rudolph.down() rudolph.forward(50) rudolph.left(90) rudolph.forward(15) rudolph.left(90) rudolph.forward(50) rudolph.right(90) rudolph.forward(75) rudolph.left(90) rudolph.forward(50) rudolph.left(90) rudolph.forward(75) rudolph.right(90) rudolph.forward(50) rudolph.left(90) rudolph.forward(15) rudolph.left(90) rudolph.forward(50) #Left Eye rudolph.up() rudolph.right(92) rudolph.forward(30) rudolph.dot(20) #Carrot Nose rudolph.left(90) rudolph.forward(20) rudolph.color('orange') rudolph.right(75) rudolph.down() rudolph.forward(30) rudolph.left(135) rudolph.forward(30) #Right Eye rudolph.up() rudolph.color('black') rudolph.left(90) rudolph.forward(30) rudolph.dot(20) #Buttons rudolph.up() rudolph.goto(-10,50) rudolph.color('red') rudolph.dot(20) rudolph.goto(-10,10) rudolph.dot(20)...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern