Pythondex
Turtle Python Programs

Python Program To Draw Thor Hammer

Published September 1, 2023 by Jarvis Silva

In this tutorial I will show you how to draw thor hammer (Mjolnir) using python, To create this program we will use the turtle module which provides us the tools to draw graphics in python.

Thor is one of the most powerful and popular character from the marvel universe, I am a fan of marvel so I decided to share with you this python program to draw thor hammer, now let’s see it in code.

Python Code To Draw Thor Hammer


import turtle
import time
turtle.pensize(2)
turtle.color("silver")
turtle.pencolor("black")
turtle.begin_fill()
#turtle.speed(-2)
turtle.seth(-120)
turtle.forward(60)
turtle.left(90)
turtle.forward(120)
turtle.left(90)
turtle.forward(60)
turtle.left(90)
turtle.forward(120)
turtle.left(45)
turtle.forward(10)
turtle.left(45)
turtle.forward(55)
turtle.left(45)
turtle.forward(10)
turtle.left(45)
turtle.forward(120)
turtle.left(45)
turtle.forward(10)
turtle.left(45)
turtle.forward(55)
#turtle.hideturtle()
turtle.left(45)
turtle.forward(10)
turtle.backward(10)
turtle.right(45)
turtle.backward(55)
turtle.right(45)
turtle.backward(10)
turtle.left(30)
turtle.backward(30)
turtle.left(105)
turtle.forward(105)
turtle.right(75)
turtle.forward(30)
turtle.left(35)
turtle.forward(10)
turtle.left(145)
turtle.forward(34)
turtle.left(45)
turtle.forward(8)
turtle.left(30)
turtle.forward(103)
turtle.left(30)
turtle.forward(10)
turtle.left(45)
#turtle.hideturtle()
turtle.forward(34)
turtle.backward(34)
turtle.left(135)
turtle.forward(10)
turtle.right(30)
turtle.forward(40)
turtle.right(90)
turtle.forward(20)
turtle.backward(180)
turtle.left(90)
turtle.forward(15)
turtle.right(90)
turtle.forward(180)
turtle.hideturtle()
turtle.end_fill()
time.sleep(50)

Above is the code for drawing thor’s hammer, In the code you can see we have used turtle functions to create this program.

Thor hammer drawing

Above is the output you will get after running this python program, As you can see we successfully drawn it using python, I hope you found this tutorial helpful and useful do share it with who loves marvel movies.

Here are some more tutorials for you:

Thank you for reading, Have a nice day 🙂