#๐ Homework :(
58 messages ยท Page 1 of 1 (latest)
@nova crescent
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Hey @nova crescent!
You are using the wrong character instead of backticks. Use ```, not """.
how do I do this
Above the tab key. Left of the 1 key. Below the Esc key. On the same key as ~
```py
code
```
guys pls help with my homework ๐ญ
Now add the py part immediately right of the first triple `
ok
"""
This code will fill the canvas with light blue circles.
Now add a function that will draw a white highlight on each bubble.
"""
speed(0)
# This function will draw one 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)
# This function will move Tracy from end of row up to beginning of the row on top
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 10 times to fill ten rows
for i in range(10):
draw_circle_row()
move_up_a_row()
I need it to have white shinny lines like this
Not familiar with this library being used for drawing stuff ๐ค
But, the question is: how do you draw the line that the problem asks for?
Reminder:
right now it is like this
!rule homework
8. Do not help with ongoing exams. When helping with homework, help people learn how to do the assignment without doing it for them.
Please provide the code entire.
It wouldn't matter if it was homework, we're just a little more restricted as to what we can provide if it is.
oh
It's fine. Please provide all of the code.
I'm just saying we can assist you so that you write the code.
that is all of it
that is all of the code
There should be an import statement at the top.
Must be some custom shtuff on whatever site that is. No matter.
So. How do you draw the line that the problem asks for?
oh it is automatically imported
yeah it is codehs
Okay, then let's assume py from turtle import *...I think.
yes
How do you draw the line that the problem asks for?
Read your current code. How does it draw one of these blue circles?
And then how does it draw a row of them?
it has "for i in range(10)"
for 10 rows
WAIT I GOT IT
thank you so much GriceTurrble ๐
what does that mean
Trying to practice the Socratic method, just asking questions to lead folks to their own answers. ๐
Or are we just being rubber ducks, maybe? ๐ค
idk but thanks
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.