Draw Concentric Circles with VIBGYOR Using Turtle in Python
Prerequisite: Turtle Programming Basics
Turtle is an inbuilt module in Python. It provides drawing using a screen (cardboard) and turtle (pen). To draw something on the screen, we need to move the turtle (pen). To move turtle, there are some functions i.e forward(), backward(), etc.
To draw Concentric VIBGYOR :
Following steps are used :
- Importing turtle module
- Set a screen
- Make Turtle object
- Define a method for circle with dynamic radius and colour.
- Write text by setting turtle object at required position.
Below is the implementation :