
Introduction
Hello everyone, welcome to violet-cat-415996.hostingersite.com. In this article, we are learning to draw Virus using Python Turtle module. It’s a simple, cool, and easy python project for beginners learning the python turtle. We are providing the source code along with the output for your reference. We are also providing a detailed explanation for the code.
So let’s start to draw a vibrating circle.
Import Turtle
import turtle
Import function imports the turtle module for the project to access its methods and functions.
Initialize the turtle object to access the Turtle functions
tt=turtle.Turtle()
turtle.bgcolor("gray")
tt.pencolor("black")
tt.speed(0)
tt.penup()
tt.goto(0,200)
tt.pendown()
Here we are initializing our turtle object as tt. The background color is set to gray and the pencolor of the turtle is set to black. The speed of the turtle is initialized to 0. The position of the turtle is initialized to goto(0,200).
Penup() – Turtle doesn’t draw anything
Pendown()- Turtle begins drawing
Function for drawing a Vibrating Circle
#initialized the variables to zero
forDis=0
dR=0
while(True):
tt.forward(forDis)
tt.right(dR)
forDis+=3
dR+=1
if dR==210:
break
tt.hideturtle()
turtle.done()
In this block of code, we are writing the function for drawing the vibrating circle. Here we have initialized the forDis(forward Distance) and dR(distance Right) variables to 0.
In the while loop, the condition is true, but the turtle will move forward distance set for forDis i.e after each iteration the forDis variable increases by 3. The turtle will move forward accordingly.
Similarly, the right angle variable dR is increased by 1 after each iteration.
In this, if the right angles i.e dR(distance Right) value becomes 210 then the loop will break. Hence the execution of the loop for the vibrating circle stops here and we get our desired output.
Complete Code to Draw Virus using Python Turtle
#Import Turtle
import turtle
tt=turtle.Turtle()
turtle.bgcolor("gray")#Screen background color set to gray
tt.pencolor("black")#Pencolor set to black
tt.speed(0)
tt.penup()
tt.goto(0,200)#position of the turtle
tt.pendown()
#Intialization of variables
forDis=0
dR=0
while(True):
tt.forward(forDis)
tt.right(dR)
forDis+=3 # forDis increased by 3 on every iteration
dR+=1# right angle distance increased by 1 on every iteration
#If the distance for right angle becomes 210 the loop breaks
if dR==210:
break
#Hide the turtle on completion of loop
tt.hideturtle()
#Completion of Turtle execution
turtle.done()Output

Thank you for reading the article.
Also Read:
- You Can Now Run AI Fully Offline on Your Phone — Google’s Gemma 4 Just Changed Everything
- I Built a 24×7 AI Blogging System for WordPress Using Python (Free) — Full Code Inside
- This Reddit User “Hacked” AI With Simple Tricks… And The Results Are Insane
- One “rm -rf” Command Almost Wiped Out $100 Million Worth of Toy Story 2
- How to Make Money with ChatGPT in 2026: A Real Guide That Still Works
- PicoClaw vs OpenClaw: The Tiny AI That Could Replace Powerful AI Agents
- Oracle Layoffs 2026: People Woke Up to an Email… and Lost Their Jobs Instantly
- X’s New Video Update Is Breaking a Basic Feature — And Users Are Not Happy
- The Most Shocking Military Tech Yet: Robot Soldiers That Could Change Warfare Forever
- Sora Shutdown: The Reality Check That Shook AI Video — And What Comes Next
- Aya Expanse supports multiple languages for diverse global applications
- Alibaba releases Page Agent on GitHub for public access
- Google Sheets Gemini reaches new levels of performance and accuracy
- Artificial intelligence boosts cardiac care in rural Australian communities
- NVIDIA GTC 2026 Offers Insights into Future Artificial Intelligence Developments
- Google DeepMind Updates Satellite Embedding Dataset with 2025 Data
- Enhancing hierarchical instruction in advanced large language models
- Meta supports community development near its data centers through grants
- Exploring the world of underwater robotics through coding techniques
- ABB Robotics partners with NVIDIA for large scale physical AI solutions
- Why All AI Models Are Slowly Becoming the Same Model
- Aam Aadmi vs Corrupt System: How ChatGPT Helped One Guy Expose Govt Fraud, The Story: “Ravi and The Missing Light Pole”
- ChatGPT Asked a person to commit suicide to solve the problem
- Viral Moment: China’s AgiBot X2 Makes History With World’s First Webster Backflip
- Terminator Rising: Albania Hands Power to AI, Echoing a Nightmare of Human Extinction
- What Is Albania’s World-First AI-Generated Minister and How Does It Work?
- Does ChatGPT believe in God? ChatGPT’s Personal Opinion
- ChatGPT vs Human: The Breath-Holding Chat That Ends in “System Failure”
- What Is Vibe Coding? The Future of No-Code Programming and Its Impact on Software Developers
- Struggling to Generate Ghibli-Style AI Images? Here’s the Real Working Tool That Others Won’t Tell You About!


