Part 1: Theory Questions
1. Explain the purpose of the `turtle. Forward ()` and `turtle. Left ()` methods. Provide
examples of how each is used to create a shape.
Turtle forward means to make the turtle go straight and move forward. and turtle left
means to make the turtle turn left but not move, you have to put the degrees that
you want the angle to turn or for how long you want the turtle to go forward. A good
example is turtle. Left (75) which means to turn the angle 75 degrees.
2. Describe the function of the `[Link]()` method. How does changing the pen
size affect the drawings?
import turtle
# Create a turtle object
my_turtle = [Link]()
# Set pen size to 5
my_turtle.pensize(5)
my_turtle.forward(100) # Draw a thick line
# Change pen size to 1
my_turtle.pensize(1)
my_turtle.forward(100) # Draw a thinner line
# Finish drawing
[Link]()
3. What is the difference between the `[Link]() ` and `[Link]()` methods, and
why are they useful?
Provide a scenario in which you would use each.
Pen up means that the pen will go up, and pen down means that the pen will go down.
[Link]() [Link](). You would put the number of how far the you want the code
to travel.
4. Explain how a `for` loop can be used to create repetitive patterns in Turtle Graphics. Why
is this technique effective in designing complex shapes? Support your explanation with an
example
A `for` loop in Turtle Graphics repeats commands, creating patterns quickly. This helps
design complex shapes efficiently, like drawing a star by repeating lines and turns
automatically.
5. Describe the purpose of the `turtle. set position()` method. How can setting specific
positions be beneficial when drawing multiple shapes?
The `[Link]()` method moves the turtle to a specific spot on the screen. It helps
draw multiple shapes without overlapping, making drawings look neat and organized.
6. What is the role of colour in Turtle Graphics? Explain how `[Link]()` can be used to
enhance visual patterns in drawings.
Color in Turtle Graphics helps make drawings more interesting and easier to understand.
Using `[Link]()`, you can change the pen color to create vibrant patterns and designs. It
allows for more creative and appealing artwork by adding different colors, making your
drawings colorful and engaging.
PArt2
Basic: Intermediate Tasks Advanced Tasks
1. Drawing a Square 1. Drawing a Star with a `for` 1. Colorful Circular Pattern
Write a program to draw a Loop Create a program that draws a
square with Turtle Graphics using Using a `for` loop, draw a five- pattern of circles in different
the `forward()` and `left()` pointed star. The star should use colors, arranged in a circular
commands. Use `pensize()` to set `[Link]()` and formation. Use `for` loops and
the pen size to 3. `[Link]()` to create the `[Link]()` to achieve the
points. Choose any color for the design.
star.
2. Creating a Stamped Pattern
Use `[Link]()` to create a 2. Nested Squares
pattern by stamping the turtle 2. Creating a Square at Multiple Draw a series of nested
shape in various locations. Positions squares, each square slightly
Include at least 5 stamps with Write a program to draw four smaller and rotated slightly from
different colors and positions. squares in different colors and at the previous one. Use a `for` loop
different positions on the screen. and change colors with each
Use `setposition()` and square.
3. Drawing a Triangle with Fill
`penup()`/`pendown()` to position
Write a program that uses each square.
`turtle.begin_fill()` and 3. Complex Flower Pattern
3. Simple Spiral Design
`turtle.end_fill()` to create a filled Use a `for` loop to create a
triangle. Choose any color for the Use a `for` loop and the `left()` flower pattern by drawing petals
fill and pen. command to create a simple in a circular arrangement. Each
spiral. Choose a pen size of 2 and petal can be created by moving
a color of your choice. forward and using `left()` to
rotate. Experiment with colors to
create a visually appealing
design.