Hedgehog space using python turtle graphics

 Hello friends, In this article I'll share the Source code to draw a hedgehog space using turtle graphics in python. 


Source Code:-


#@only.python

import turtle 


ninja = turtle.Turtle()


ninja.speed(10)


for i in range(180):

    ninja.forward(100)

    ninja.right(30)

    ninja.forward(20)

    ninja.left(60)

    ninja.forward(50)

    ninja.right(30)

    

    ninja.penup()

    ninja.setposition(0, 0)

    ninja.pendown()

    

    ninja.right(2)

 


ninja.penup()

ninja.setposition(-200,-300)

ninja.pendown()

ninja.pencolor("red")

ninja.write("Follow @only.python")     

turtle.done()


Output:- 



 Tap here to see output

For more codes follow @only.python on Instagram

Comments

Post a Comment

Popular posts from this blog

Draw Virat Kohli's Cartoon face using python turtle graphics

Wish Happy Friendship Day using Python turtle graphics

Rainbow benzene using Python turtle Graphics