**Part A.**

Define a function triangle that draws an equilateral triangle

and takes two parameters:

1. t, a turtle object

2. size, the side length of an equilateral triangle

**Part C:**

Define a function flagLine that takes 3 parameters and draws a line

of flags (triangles). You MUST use the function defined in Part A:

1. pen, a turtle object

2. length, the side length of an equilateral triangle

3. num, number of flags in the line

*and I need to test both part A and C.
Please I really need your help!*

here's what I got for part A:

```
def triangle(t, size):
angle = 360/3
for i in range(3):
t.forward(size)
t.left(angle)
```

and I have the code that draws two flagline triangles.

```
def triangle(t, size):
angle = 360/3
for i in range(3):
t.forward(size)
t.left(angle)
import turtle
ascreen = turtle.Screen()
r = turtle.Turtle()
for i in range(2):
triangle (r,100)
r.fd(100)
ascreen.exitoneclick()
```

but I am not so sure what would I do with Part C.

I would very appriciate if you help me with this.

Thank you!