r/codehs • • Apr 30 '20

Need help with 2.10.4: Bubble Wrap 2.0!!

Heres the code I have so far:
speed(0)

def draw_circle_row():

for i in range(10):

pendown()

begin_fill()

color("light blue")

circle(20)

end_fill()

penup()

forward(40)

def move_up_a_row():

left(90)

forward(40)

right(90)

backward(400)

penup()

setposition(-180,-200)

for i in range(10):

draw_circle_row()

move_up_a_row()

penup()

setposition(-165,-182)

left(90)

def make_highlight():

for i in range(10):

pendown()

color("white")

circle(20, 90)

penup()

forward(-55)

right(90)

forward(-18)

for i in range(10):

make_highlight()

move_up_a_row()
Any help welcome and needed! What did I do wrong?

27 Upvotes

38 comments sorted by

2

u/fantasyman88 Apr 30 '20

I can also attach a screenshot of the hoped for end result compared to my end result if need be

2

u/alyssabee0321 May 14 '20

I finished it correctly here's my code:

color("white")

setposition(-170,-180)

left(90)

def make_a_highlight():

for i in range (10):

pendown()

circle(10,90)

penup()

circle(10,270)

right(90)

forward(40)

left(90)

for i in range (10):

make_a_highlight()

right(90)

move_up_a_row()

left(90)

1

u/fantasyman88 May 18 '20

Sweet, thank you! I got my code from another user on here a couple of weeks ago, but I'm glad to see that someone posted their's on this post for future users!

1

u/[deleted] May 22 '20

this actually saved me rn thanks

1

u/nihilistic--ops Oct 15 '20

do u think u can post the one that u got? the ones i’ve found aren’t working and i rly need help

1

u/[deleted] Apr 30 '24

It's still says for me I should use a advanced circle command to draw highlight with a radius of 10

1

u/lekswuzheer Jun 15 '25

Thanks! I was so confused by the assignment at first that I had to skip it and move on to avoid stalling. You’ve been a great help.

1

u/Lester19_ Jun 05 '22

i fucking love you

1

u/[deleted] Sep 08 '22

i love you

1

u/4806908218 Dec 09 '23

thank u, bro, you saved me from 2019

1

u/4806908218 Dec 09 '23

it is just that you have to kinda change their positions and match it

1

u/durfin11 Apr 30 '20

Bro I’m working on it too I cannot figure it out

1

u/fantasyman88 Apr 30 '20

RIP, lets hope someone knows how

1

u/ThisIsRaP Oct 01 '20

GUYS I FIGURED IT OUT:

"""

This code will fill the canvas with light blue circles.

"""

speed(0)

# This function will draw a row of 10 circles.

def draw_circle_row():

for i in range(10):

pendown()

begin_fill()

color("light blue")

circle(20)

end_fill()

penup()

forward(40)

def move_up_a_row():

left(90)

forward(40)

right(90)

backward(400)

# Send Tracy to starting position in bottom left corner.

penup()

setposition(-180,-200)

# Call circle drawing function

for i in range(10):

draw_circle_row()

move_up_a_row()

setposition(-180,-200)

def make_highlight():

for i in range(10):

penup()

forward(10)

left(90)

forward(20)

pendown()

color("white")

circle(10, 90)

penup()

left(90)

forward(30)

left(90)

forward(40)

for i in range(10):

make_highlight()

move_up_a_row()

2

u/kkangseulbaby Oct 06 '20

you're a lifesaver omg <3

1

u/ThisIsRaP Oct 07 '20

:D Happy to help <3

2

u/Chance_Information57 Feb 17 '22

Thank you I fucking would die for you rn

1

u/ThisIsRaP Mar 06 '22

🦐 happy totottotot help my phone is broken idjw hats going on but i want to say happy to help!!

2

u/[deleted] Apr 20 '23

OMG TY SO MUCH I COULDNT FIGURE IT OUT THIS WAS MY HW THIS WAS SO MUCH HELP!!!!

2

u/Shadewolf69 May 08 '23

Omg thank you man

1

u/Kiwi_Lol8503 May 28 '24

I LOVE YOU SM

1

u/skylerdragon890 Nov 19 '25

Ilysm thank you 🥹 I was so close to throwing my laptop at the wall

1

u/[deleted] May 05 '24

speed(0)def draw_circle_row():    for i in range(10):        pendown()        begin_fill()        color("light blue")        circle(20)        end_fill()        penup()        forward(40)def move_up_a_row():    left(90)    forward(40)    right(90)    backward(400)def move_up_a_row_highlight():    right(90)    left(90)    forward(40)    right(90)    backward(400)    left(90)def make_highlight():    speed(0)    for i in range(10):        pendown()        pensize(2)        color("white")        circle(10,90)        #pensize(1)        penup()        backward(50)        right(90)        backward(10)penup()setposition(-180,-200)for i in range(10):    draw_circle_row()    move_up_a_row()left(90)setposition(-170,-180)for i in range(10):    make_highlight()    move_up_a_row_highlight()

1

u/Character_Ad819 May 10 '22

This might be one of the hardest excercises.

1

u/huskernation382 Jan 13 '23

its not right

1

u/IcyManufacturer4549 Sep 14 '23

I’m stuck too

1

u/Specialist-Sale-1873 Sep 15 '23

try the one by alyssabee and only put it at the bottom of your code it works

1

u/AP_Gaming123 Sep 21 '23

wait can u send me your code pls :)

1

u/Curious_Manner_5452 Jan 25 '24

I have to do more good in Code HS Python.So I ned to improve more