Back to Browse

Draw Snowman | Full Python Code || Python Turtle

932 views
Nov 11, 2022
4:10

Code for snowman: import turtle as t t.speed(6) t.setup(800,700) t.bgcolor('grey') #Bottom Body t.penup() t.goto(0,-280) t.pendown() t.color('white') t.begin_fill() t.circle(110) t.end_fill() #Middle Part of Body t.penup() t.goto(0,-110) t.pendown() t.begin_fill() t.circle(90) t.end_fill() #Head t.penup() t.goto(0,20) t.pendown() t.begin_fill() t.circle(70) t.end_fill() def circle(): t.color('black') t.begin_fill() t.circle(10) t.end_fill() #Eyes x=-20 for i in range(2): t.penup() t.goto(x,110) t.pendown() circle() x=x+40 y=0 for i in range(5): t.penup() t.goto(0,y) t.pendown() circle() y=y-55 #Mouth t.penup() t.goto(0,70) t.pendown() t.color('red') t.begin_fill() t.circle(17) t.end_fill() t.penup() t.goto(0,75) t.pendown() t.color('white') t.begin_fill() t.circle(17) t.end_fill() t.penup() t.goto(75,0) t.pendown() t.color('brown') t.begin_fill() t.left(40) for i in range(2): t.forward(75) t.left(90) t.forward(7) t.left(90) t.end_fill() t.penup() t.goto(115,38) t.pendown() t.begin_fill() t.left(40) for i in range(2): t.forward(25) t.left(90) t.forward(5) t.left(90) t.end_fill() t.begin_fill() t.right(100) for i in range(2): t.forward(25) t.left(90) t.forward(5) t.left(90) t.end_fill() t.penup() t.goto(-130,50) t.pendown() t.begin_fill() t.right(10) for i in range(2): t.forward(75) t.right(90) t.forward(7) t.right(90) t.end_fill() t.penup() t.goto(-112,58) t.pendown() t.begin_fill() t.right(40) for i in range(2): t.forward(25) t.left(90) t.forward(5) t.left(90) t.end_fill() t.begin_fill() t.right(100) t.penup() t.goto(-108,31) t.pendown() for i in range(2): t.forward(25) t.right(90) t.forward(5) t.right(90) t.end_fill() t.hideturtle() t.done() #snowmaninpython #codingtechnique #pythonturtle #100pythonpracticecode

Download

1 formats

Video Formats

360pmp410.2 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Draw Snowman | Full Python Code || Python Turtle | NatokHD