29.3k views
2 votes
Does anybody have the code to 2.19.5: Circle Pyramid 2.0 in CodeHS?

1 Answer

4 votes

Answer:

Not rlly im only missing one of the check marks so here if yall find out what to do pls tell me in the comments

Step-by-step explanation:

#WHat the actual frik

speed(0)

radius = 25

penup()

setposition(-150,-60)

def move_to_row(num_circ):

x_value = -((num_circ*5)/2)

y_value = -200+(5*radius)

penup()

setposition(x_value,y_value)

pendown()

def row_value(num_circ):

for i in range(num_circ):

for i in range(4):

pendown()

circle(radius)

penup()

forward(70)

num_circ=int(input("How many circles on the bottom row? (8 or less): "))

for i in range(num_circ):

move_to_row(num_circ)

radius=radius+1

row_value(num_circ)

num_circ=num_circ-1

User Lavette
by
4.4k points