84.9k views
5 votes
What is the code for 2.23.5 circle pyramid 2.0 in codehs

Answer:
speed(0)
radius = 25
diameter = radius * 2
row_value = 1
num_circle = int(input("How many circle on the bottom row? (8 or less): "))
def move_to_row(num_circle):
x_value = -((num_circle*50)/2)
y_value = -250 +(50*row_value)
penup()
setposition(x_value,y_value)
pendown()
def draw_circle_row(num_circle):
for i in range(num_circle):
pendown()
circle(radius)
penup()
forward(diameter)
for i in range(num_circle):
move_to_row(num_circle)
row_value=row_value+1
draw_circle_row(num_circle)
num_circle=num_circle-1

User Jayxhj
by
2.9k points

1 Answer

5 votes

go to GitHub in the search collum search codehs plus,(by indianDrake) then download it go to the file, make sure it's there, click the three dots at the top right of your chrome page, click on more tools, then go to extensions, click unload extension select the file, and boom automatic answers to every lesson.

User Misha Vyrko
by
3.4k points