,

Tom & Jerry Cartoon Character – Python Turtle

Python Turtle Graphics is a fun and interactive way to introduce programming concepts to beginners. One of the classic cartoon characters that you can draw using Python Turtle is Tom from the popular “Tom & Jerry” series. Tom is a mischievous and playful cat, often seen chasing after Jerry, the clever mouse. Let’s explore how to draw Tom using Python Turtle!

To begin, you need to import the Turtle module:

import turtle

Next, you can set up the Turtle window and the Turtle object:

wn=turtle.Screen()           #tom   #848283
wn.setup(640,640)           #jerry #e48508
wn.title("Laptop")
wn.bgcolor("blue")

Now, let’s start drawing Tom’s face:

#'''
#tom
b=turtle.Turtle()
b.shapesize(1.5)
b.speed(0)


b.begin_fill()
b.color("#848283","#848283")
b.seth(90)
b.fd(320)
b.seth(180)
b.fd(320)
b.seth(-90)
b.fd(640)
b.seth(0)
b.fd(320)
b.seth(90)
b.fd(320)
b.end_fill()

Next, let’s draw Tom’s ears, whiskers, and mouth:

#winsound.PlaySound("tom.wav",winsound.SND_ASYNC)
b.bk(10)
#b.ht()
b.begin_fill()
b.color("white","white")
b.seth(135)
#b.color("black")
b.circle(35,36)
b.circle(300,20)
b.seth(-60)
b.circle(-50,115)
b.fd(30)
b.seth(-100)
b.circle(30,55)
b.seth(100)
b.circle(-10,55)
b.circle(-1.5,150)
b.circle(20,70)
b.circle(494,22)
b.end_fill()

#b.color("black")
b.up()
b.seth(90)
b.fd(125)
b.down()
b.begin_fill()
b.color("black","black")
b.circle(30,64)
b.circle(-55,34)
b.circle(-7,101)
b.circle(-75,27)
b.end_fill()
#b.fd(30)

b.color("white")
b.begin_fill()
b.color("white","white")
b.up()
b.seth(-90)
b.fd(3)
b.down()
b.seth(-175)
b.fd(20)
b.circle(4,160)
b.fd(23)
b.end_fill()

#b.color("green")
b.up()
b.seth(-90)
b.fd(70)
b.down()
b.begin_fill()
b.color("black","black")
b.seth(-163)
b.circle(-160,54)
b.seth(-41)
b.circle(160,30)
b.seth(-4)
b.circle(160,25)
b.end_fill()

b.up()
b.seth(-90)
b.fd(50)
b.down()
b.begin_fill()
b.color("black","black")
b.seth(180)
b.circle(-160,25)
b.seth(-29)
b.circle(160,26)
b.end_fill()

b.up()
b.seth(180)
b.fd(2)
b.seth(90)
b.fd(156)
b.seth(180)
b.fd(105)
b.down()

b.begin_fill()
b.color("#fae383","#fae383")
b.seth(65)
b.circle(200,50)
b.circle(10,90)
b.circle(80,30)
b.seth(-117)
b.circle(200,35)
b.seth(-20)
b.circle(-100,33)
b.seth(16)
b.fd(20)
b.end_fill()

b.color("black")
b.up()
b.seth(65)
b.circle(200,35)
b.down()
b.begin_fill()
b.color("black","black")
b.pensize(1)
b.circle(200,5)
b.pensize(2)
b.circle(200,10)
b.circle(10,90)
b.circle(80,20)
b.pensize(1)
b.circle(80,10)
b.seth(48)
b.circle(-80,30)
b.seth(-10)
b.fd(7)
b.seth(-68)
b.fd(50)
b.end_fill()

Finally, let’s draw Tom’s body and fill it with color:

b.begin_fill()
b.color("#fae383","#fae383")
b.seth(65)
b.circle(200,50)
b.circle(10,90)
b.circle(80,30)
b.seth(-117)
b.circle(200,35)
b.seth(-20)
b.circle(-100,33)
b.seth(16)
b.fd(20)
b.end_fill()

b.color("black")
b.up()
b.seth(65)
b.circle(200,35)
b.down()
b.begin_fill()
b.color("black","black")
b.pensize(1)
b.circle(200,5)
b.pensize(2)
b.circle(200,10)
b.circle(10,90)
b.circle(80,20)
b.pensize(1)
b.circle(80,10)
b.seth(48)
b.circle(-80,30)
b.seth(-10)
b.fd(7)
b.seth(-68)
b.fd(50)
b.end_fill()

b.up()
b.seth(-97)
b.fd(125)
b.down()
b.begin_fill()
b.color("#1a9a1a","#46e026")
b.seth(65)
b.circle(150,35)
b.circle(17,147)
b.circle(150,34)
b.seth(-46)
b.fd(15)
b.seth(18)
b.fd(20)
b.end_fill()

b.color("black")
b.up()
b.bk(7)
b.down()
b.begin_fill()
b.color("black","black")
b.seth(55)
b.circle(70,55)
b.circle(5,127)
b.circle(70,58)
b.end_fill()

b.up()
b.seth(-60)
b.fd(23)
b.down()
b.begin_fill()
b.color("black","black")
b.seth(150)
b.circle(250,50)
b.seth(22)
b.circle(-250,30)
b.seth(-12)
b.circle(-250,20)
b.end_fill()

b.up()
b.seth(-60)
b.fd(12)
b.down()
b.begin_fill()
b.color("black","black")
b.seth(-155)
b.circle(-250,50)
b.seth(-27)
b.circle(250,25)
b.seth(1)
b.circle(250,25)
b.end_fill()

b.up()
b.seth(92)
b.fd(35)
b.down()
b.begin_fill()
b.color("#a6a6a6","#a6a6a6")
b.seth(65)
b.circle(200,30)
b.seth(60)
b.fd(30)
b.circle(-15,125)
b.fd(25)
b.circle(3,158)
b.fd(45)
b.circle(-35,84)
b.seth(-90)
b.fd(198)
b.seth(135)
#b.color("black")
b.circle(35,36)
b.circle(300,16)
b.end_fill()

b.color("black")
b.up()
b.seth(90)
b.fd(200)
b.seth(0)
b.fd(30)
b.down()
b.begin_fill()
b.color("black","black")
b.seth(158)
b.circle(80,90)
b.seth(100)
b.circle(-80,35)
b.seth(43)
b.circle(-80,44)
b.seth(-2)
b.ht()
b.circle(-50,60)
b.end_fill()

#'''

You can customize the colors and sizes of the various parts to make your Tom drawing unique. Have fun exploring Python Turtle and creating your own Tom & Jerry adventures!

Full Code(For Drawing Tom & Jerry Together Half and Half):

import turtle
#Hi Guys ! Below is the code which i have
#written to draw cartoon charcter which 
#is tom and jerry together with python turtle


wn=turtle.Screen()           #tom   #848283
wn.setup(640,640)           #jerry #e48508
wn.title("Laptop")
wn.bgcolor("blue")

#'''
#tom
b=turtle.Turtle()
b.shapesize(1.5)
b.speed(0)


b.begin_fill()
b.color("#848283","#848283")
b.seth(90)
b.fd(320)
b.seth(180)
b.fd(320)
b.seth(-90)
b.fd(640)
b.seth(0)
b.fd(320)
b.seth(90)
b.fd(320)
b.end_fill()

#winsound.PlaySound("tom.wav",winsound.SND_ASYNC)
b.bk(10)
#b.ht()
b.begin_fill()
b.color("white","white")
b.seth(135)
#b.color("black")
b.circle(35,36)
b.circle(300,20)
b.seth(-60)
b.circle(-50,115)
b.fd(30)
b.seth(-100)
b.circle(30,55)
b.seth(100)
b.circle(-10,55)
b.circle(-1.5,150)
b.circle(20,70)
b.circle(494,22)
b.end_fill()

#b.color("black")
b.up()
b.seth(90)
b.fd(125)
b.down()
b.begin_fill()
b.color("black","black")
b.circle(30,64)
b.circle(-55,34)
b.circle(-7,101)
b.circle(-75,27)
b.end_fill()
#b.fd(30)

b.color("white")
b.begin_fill()
b.color("white","white")
b.up()
b.seth(-90)
b.fd(3)
b.down()
b.seth(-175)
b.fd(20)
b.circle(4,160)
b.fd(23)
b.end_fill()

#b.color("green")
b.up()
b.seth(-90)
b.fd(70)
b.down()
b.begin_fill()
b.color("black","black")
b.seth(-163)
b.circle(-160,54)
b.seth(-41)
b.circle(160,30)
b.seth(-4)
b.circle(160,25)
b.end_fill()

b.up()
b.seth(-90)
b.fd(50)
b.down()
b.begin_fill()
b.color("black","black")
b.seth(180)
b.circle(-160,25)
b.seth(-29)
b.circle(160,26)
b.end_fill()

b.up()
b.seth(180)
b.fd(2)
b.seth(90)
b.fd(156)
b.seth(180)
b.fd(105)
b.down()

b.begin_fill()
b.color("#fae383","#fae383")
b.seth(65)
b.circle(200,50)
b.circle(10,90)
b.circle(80,30)
b.seth(-117)
b.circle(200,35)
b.seth(-20)
b.circle(-100,33)
b.seth(16)
b.fd(20)
b.end_fill()

b.color("black")
b.up()
b.seth(65)
b.circle(200,35)
b.down()
b.begin_fill()
b.color("black","black")
b.pensize(1)
b.circle(200,5)
b.pensize(2)
b.circle(200,10)
b.circle(10,90)
b.circle(80,20)
b.pensize(1)
b.circle(80,10)
b.seth(48)
b.circle(-80,30)
b.seth(-10)
b.fd(7)
b.seth(-68)
b.fd(50)
b.end_fill()

b.up()
b.seth(-97)
b.fd(125)
b.down()
b.begin_fill()
b.color("#1a9a1a","#46e026")
b.seth(65)
b.circle(150,35)
b.circle(17,147)
b.circle(150,34)
b.seth(-46)
b.fd(15)
b.seth(18)
b.fd(20)
b.end_fill()

b.color("black")
b.up()
b.bk(7)
b.down()
b.begin_fill()
b.color("black","black")
b.seth(55)
b.circle(70,55)
b.circle(5,127)
b.circle(70,58)
b.end_fill()

b.up()
b.seth(-60)
b.fd(23)
b.down()
b.begin_fill()
b.color("black","black")
b.seth(150)
b.circle(250,50)
b.seth(22)
b.circle(-250,30)
b.seth(-12)
b.circle(-250,20)
b.end_fill()

b.up()
b.seth(-60)
b.fd(12)
b.down()
b.begin_fill()
b.color("black","black")
b.seth(-155)
b.circle(-250,50)
b.seth(-27)
b.circle(250,25)
b.seth(1)
b.circle(250,25)
b.end_fill()

b.up()
b.seth(92)
b.fd(35)
b.down()
b.begin_fill()
b.color("#a6a6a6","#a6a6a6")
b.seth(65)
b.circle(200,30)
b.seth(60)
b.fd(30)
b.circle(-15,125)
b.fd(25)
b.circle(3,158)
b.fd(45)
b.circle(-35,84)
b.seth(-90)
b.fd(198)
b.seth(135)
#b.color("black")
b.circle(35,36)
b.circle(300,16)
b.end_fill()

b.color("black")
b.up()
b.seth(90)
b.fd(200)
b.seth(0)
b.fd(30)
b.down()
b.begin_fill()
b.color("black","black")
b.seth(158)
b.circle(80,90)
b.seth(100)
b.circle(-80,35)
b.seth(43)
b.circle(-80,44)
b.seth(-2)
b.ht()
b.circle(-50,60)
b.end_fill()

#'''








#'''
#jerry
a=turtle.Turtle()
a.shapesize(1.5)
a.speed(0)
a.begin_fill()
a.color("#e48508","#e48508")
a.seth(90)
a.fd(320)
a.seth(0)
a.fd(320)
a.seth(-90)
a.fd(640)
a.seth(180)
a.fd(320)
a.seth(90)
a.fd(320)
a.end_fill()

a.bk(10)
#a.ht()
#a.shape('pen.gif')
a.begin_fill()
a.color("#f8bc74","#f8bc74")
a.seth(45)
#b.color("black")
a.circle(-35,36)
a.circle(-300,20)
a.seth(-120)
a.circle(50,115)
a.fd(30)
a.seth(-80)
a.circle(-30,63)
#a.seth(80)
#a.circle(10,55)
#a.circle(1.5,150)
#a.circle(-20,70)
a.circle(-530,22)
a.end_fill()

#a.color("black")
a.up()
a.seth(90)
a.fd(125)
a.down()
a.begin_fill()
a.color("black","black")
a.circle(-30,64)
a.circle(55,34)
a.circle(7,99)
a.circle(75,29)
a.end_fill()

a.color("white")
a.begin_fill()
a.color("white","white")
a.up()
a.seth(-90)
a.fd(3)
a.down()
a.seth(-5)
a.fd(20)
a.circle(-4,160)
a.fd(23)
a.end_fill()


a.up()
a.seth(-90)
a.fd(70)
a.down()
a.begin_fill()
a.color("black","black")
a.seth(-17)
a.circle(160,54)
a.seth(-139)
a.circle(-160,30)
a.seth(-176)
a.circle(-160,25)
a.end_fill()

a.up()
a.seth(-90)
a.fd(50)
a.down()
a.begin_fill()
a.color("black","black")
a.seth(0)
a.circle(160,25)
a.seth(-151)
a.circle(-160,26)
a.end_fill()

a.up()
a.seth(90)
a.fd(156)
a.seth(0)
a.fd(107)
a.down()

a.begin_fill()
a.color("white","white")
a.seth(115)
a.circle(-200,50)
a.circle(-10,90)
a.circle(-80,30)
a.seth(-63)
a.circle(-200,35)
a.seth(-160)
a.circle(100,33)
a.seth(165)
a.fd(20)
a.end_fill()

a.color("black")
a.up()
a.seth(115)
a.circle(-200,35)
a.down()
a.begin_fill()
a.color("black","black")
a.pensize(1)
a.circle(-200,5)
a.pensize(2)
a.circle(-200,10)
a.circle(-10,90)
a.circle(-80,20)
a.pensize(1)
a.circle(-80,10)
a.seth(128)
a.circle(80,29)
a.seth(-170)
a.fd(11)
a.seth(-111)
a.fd(50)
a.end_fill()

###########
a.up()
a.seth(-83)
a.fd(125)
a.down()
a.begin_fill()
a.color("black","black")
a.seth(115)
a.circle(-110,35)
a.circle(-10,147)
a.circle(-110,38)
a.end_fill()


a.up()
a.seth(-140)
a.fd(25)
a.down()
a.begin_fill()
a.color("black","black")
a.seth(25)
a.circle(-250,50)
a.seth(152)
a.circle(250,25)
a.seth(-177)
a.circle(250,25)
a.end_fill()

a.up()
a.seth(-80)
a.fd(17)
a.down()
a.begin_fill()
a.color("black","black")
a.seth(10)
a.circle(-230,50)
a.seth(137)
a.circle(230,25)
a.seth(168)
a.circle(230,25)
a.end_fill()

a.up()
a.seth(90)
a.fd(240)
a.seth(180)
a.fd(30)
a.down()
a.begin_fill()
a.color("black","black")
a.seth(20)
a.circle(-80,90)
a.seth(95)
a.circle(80,30)
a.seth(140)
a.circle(80,70)
a.end_fill()


a.up()
a.seth(0)
a.fd(30)
a.seth(90)
a.fd(30)
a.down()
a.seth(-110)
a.circle(70,10)
a.pensize(2)
a.circle(70,7)
a.color("white")
a.circle(70,5)
a.color("black")
a.pensize(3)
a.circle(70,18)
a.pensize(4)
a.circle(10,135)
a.pensize(3)
a.circle(70,18)
a.pensize(2)
a.color("white")
a.circle(70,7)
a.color("black")
a.circle(70,5)
a.ht()
a.pensize(1)
a.circle(70,10)

turtle.done()
# lets us see the output how it looks

Output:

In conclusion, Python Turtle provides a fun and interactive way to create drawings and animations, making it a great tool for beginners to learn programming concepts. By drawing characters like Tom from “Tom & Jerry,” learners can practice Python skills while expressing their creativity. Python Turtle’s simplicity and visual feedback make it an excellent choice for anyone interested in exploring the world of programming. So, grab your virtual pen and start drawing your favorite characters today!

Author

Sona Avatar

Written by

Leave a Reply

Trending

CodeMagnet

Your Magnetic Resource, For Coding Brilliance

Programming Languages

Web Development

Data Science and Visualization

Career Section

<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4205364944170772"
     crossorigin="anonymous"></script>