Lollipops code with colors

Hello, I am trying to create a code for the below

Lollipos

I am not getting the correct colors inside the circles. How do you alternate colors inside the lollipop circles? Below is my code:

import turtle
t=turtle.Turtle()
wn = turtle.Screen()
t.pensize(3)
t.speed(0)
t.penup()
t.pendown()
turtle.bgcolor(“black”)
t.pencolor(“white”)

list1 =[“red”,“orange”]
list2 =[“white”,“pink”]
list3 =[“blue”,“aqua”]
list4 =[“yellow”,“lime”]
list5 =[“purple”,“blue”]
list6 =[“tan”,“orange”]

radius= 75

def draw_circle_move_up():
t.pendown()
t.color(“red”, “orange”)
t.begin_fill()
t.circle(radius)
t.end_fill()
t.penup()
t.left(90)
t.fd(15)
t.right(90)
t.pendown()

t.penup()
t.setposition(-625,-50)
for i in range(5):
draw_circle_move_up()
radius = radius - 15

t.penup()
t.setposition(-632,-50)
t.pendown()
for i in range(2):
t.pencolor(“orange”)
t.fillcolor(“orange”)
t.begin_fill()
t.fd(14)
t.right(90)
t.fd(125)
t.right(90)
t.end_fill()

radius= 75

def draw_circle_move_up():
t.pendown()
t.color(“white”,“pink”)
t.begin_fill()
t.circle(radius)
t.end_fill()
t.circle(radius)
t.penup()
t.left(90)
t.fd(15)
t.right(90)
t.pendown()

t.penup()
t.setposition(-425,-50)
for i in range(5):
draw_circle_move_up()
radius = radius - 15

t.penup()
t.setposition(-432,-50)
t.pendown()
for i in range(2):
t.pencolor(“pink”)
t.fillcolor(“pink”)
t.begin_fill()
t.fd(14)
t.right(90)
t.fd(125)
t.right(90)
t.end_fill()

radius= 75

def draw_circle_move_up():
t.pendown()
t.color(“blue”,“aqua”)
t.begin_fill()
t.circle(radius)
t.end_fill()
t.circle(radius)
t.penup()
t.left(90)
t.fd(15)
t.right(90)
t.pendown()

t.penup()
t.setposition(-225,-50)
for i in range(5):
draw_circle_move_up()
radius = radius - 15

t.penup()
t.setposition(-232,-50)
t.pendown()
for i in range(2):
t.pencolor(“blue”)
t.fillcolor(“blue”)
t.begin_fill()
t.fd(14)
t.right(90)
t.fd(125)
t.right(90)
t.end_fill()

radius= 75

def draw_circle_move_up():
t.pendown()
t.color(“yellow”,“lime”)
t.begin_fill()
t.circle(radius)
t.end_fill()
t.circle(radius)
t.penup()
t.left(90)
t.fd(15)
t.right(90)
t.pendown()

t.penup()
t.setposition(-25,-50)
for i in range(5):
draw_circle_move_up()
radius = radius - 15

t.penup()
t.setposition(-32,-50)
t.pendown()
for i in range(2):
t.pencolor(“yellow”)
t.fillcolor(“yellow”)
t.begin_fill()
t.fd(14)
t.right(90)
t.fd(125)
t.right(90)
t.end_fill()

radius= 75

def draw_circle_move_up():
t.pendown()
t.color(“purple”,“red”)
t.begin_fill()
t.circle(radius)
t.end_fill()
t.circle(radius)
t.penup()
t.left(90)
t.fd(15)
t.right(90)
t.pendown()

t.penup()
t.setposition(175,-50)
for i in range(5):
draw_circle_move_up()
radius = radius - 15

t.penup()
t.setposition(168,-50)
t.pendown()
for i in range(2):
t.pencolor(“red”)
t.fillcolor(“red”)
t.begin_fill()
t.fd(14)
t.right(90)
t.fd(125)
t.right(90)
t.end_fill()

radius= 75

def draw_circle_move_up():
t.pendown()
t.color(“tan”,“dark green”)
t.begin_fill()
t.circle(radius)
t.end_fill()
t.circle(radius)
t.penup()
t.left(90)
t.fd(15)
t.right(90)
t.pendown()

t.penup()
t.setposition(375,-50)
for i in range(5):
draw_circle_move_up()
radius = radius - 15

t.penup()
t.setposition(368,-50)
t.pendown()
for i in range(2):
t.pencolor(“green”)
t.fillcolor(“green”)
t.begin_fill()
t.fd(14)
t.right(90)
t.fd(125)
t.right(90)
t.end_fill()

wn.exitonclick()

This is what I am getting

Lollipos 1

Please wrap code in triple backticks to preserve the formatting:

```python
if True:
    print(''Hello world!')
```

I can see two basic approaches:
a) Draw the large disk and two thick circles on it using the other color.
b) Draw five disks from the largest to the smallest alternating the two colors.

It looks like you are trying the approach b) but the inner disks are not filled (or are filled a wrong color), right?

Yes, approach B.
But I am not sure how to create alternating circles inside each other with different colors. Thx

OK, but as Matthew asked, will you please put the two triple backtick ``` lines around your code so we can see it properly?

It looks like you’re defining draw_circle_move_up multiple times. It would be better to define a function that draws a lollipop with given colours and then call it for each lollipop.