Create Virus using python turtle

In this tutorial, we are going to show and explain the Create Virus using python turtle. We have added the video tutorial and the source code of the program.

So let us begin with Create Virus using python turtle.

 

Video Tutorial: Create Virus using python turtle

 

 

Source Code: 

 

import turtle
screen = turtle. Screen ()
screen.setup(500, 600, startx=0, starty=100)
t = turtle.Turtle()
s = turtle. Screen ()
s.bgcolor("black")
t. pencolor("red")
a = 0
b = 0
t.speed (0)
t. penup()
t.goto(0,200)
t. pendown ()
while(True):
    t. forward (a)
    t.right(b)
    a+=3
    b+=1
    if b == 210:
        break
    t.hideturtle()

turtle.done()

 

Output:

 

Create Virus using python turtle

Leave a Reply

Your email address will not be published.