MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/codehs/comments/101q86c/whats_the_mistake_here/
r/codehs • u/Breakfast-Several • Jan 02 '23
7 comments sorted by
2
You are saying circ = BOTTOM_RADIUS(size) instead of circ = Circle(BOTTOM_RADIUS)
The constant is the size, not the shape
1 u/Breakfast-Several Jan 03 '23 I changed but it keeps saying that I have the same mistakesThis is the new codeTOP_RADIUS = 30MID_RADIUS = 60BOTTOM_RADIUS = 100circ.get_width()circ.get_height()circ =circle (30)circ.set_color(Color.grey)circ.set_position(get_width()/2, get_height()/2)add(circ)circ = circle(60)circ.set_color(Color.grey)circ.set_position(get_width()/2, get_height()/2)add(circ)circ = circle(100)circ.set_color(Color.grey)circ.set_position(get_width()/2, get_height()/2)add(circ) 2 u/[deleted] Jan 03 '23 edited Jan 03 '23 [removed] — view removed comment 1 u/Breakfast-Several Jan 03 '23 Thank you so much 1 u/East-Pineapple1114 Jan 18 '24 Wait what was the error?
1
I changed but it keeps saying that I have the same mistakes
This is the new code
TOP_RADIUS = 30MID_RADIUS = 60BOTTOM_RADIUS = 100circ.get_width()circ.get_height()circ =circle (30)circ.set_color(Color.grey)circ.set_position(get_width()/2, get_height()/2)add(circ)circ = circle(60)circ.set_color(Color.grey)circ.set_position(get_width()/2, get_height()/2)add(circ)circ = circle(100)circ.set_color(Color.grey)circ.set_position(get_width()/2, get_height()/2)add(circ)
2 u/[deleted] Jan 03 '23 edited Jan 03 '23 [removed] — view removed comment 1 u/Breakfast-Several Jan 03 '23 Thank you so much 1 u/East-Pineapple1114 Jan 18 '24 Wait what was the error?
[removed] — view removed comment
1 u/Breakfast-Several Jan 03 '23 Thank you so much 1 u/East-Pineapple1114 Jan 18 '24 Wait what was the error?
Thank you so much
1 u/East-Pineapple1114 Jan 18 '24 Wait what was the error?
Wait what was the error?
Those are constant, which are essentially variables that never change. Use them like variables, not like functions.
2
u/mysteriounknown Jan 03 '23
You are saying circ = BOTTOM_RADIUS(size) instead of circ = Circle(BOTTOM_RADIUS)
The constant is the size, not the shape
1
u/5oco Jan 03 '23
Those are constant, which are essentially variables that never change. Use them like variables, not like functions.