#๐Ÿ”’ Homework :(

58 messages ยท Page 1 of 1 (latest)

proud frigateBOT
#

@nova crescent

Python help channel opened

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.

oblique forge
#

Please post any code you have written so far as text.

#

!code

proud frigateBOT
#
Formatting code on Discord

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

For long code samples, you can use our pastebin.

nova crescent
#

!code

#

oh alright

proud frigateBOT
#

Hey @nova crescent!

Please edit your message to use a code block

You are using the wrong character instead of backticks. Use ```, not """.

#
Formatting code on Discord

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

For long code samples, you can use our pastebin.

nova crescent
#

how do I do this

oblique forge
#

Above the tab key. Left of the 1 key. Below the Esc key. On the same key as ~

sterile moss
#

```py
code
```

nova crescent
#

guys pls help with my homework ๐Ÿ˜ญ

oblique forge
#

Now add the py part immediately right of the first triple `

nova crescent
#

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()
oblique forge
#

There you go.

#

Now it's readable. ๐Ÿ™‚

nova crescent
#

thanks

#

๐Ÿ˜„

oblique forge
#

Also copyable.

#

This doesn't appear to be the whole program.

nova crescent
#

I need it to have white shinny lines like this

sterile moss
#

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:

nova crescent
#

right now it is like this

sterile moss
#

!rule homework

proud frigateBOT
#

8. Do not help with ongoing exams. When helping with homework, help people learn how to do the assignment without doing it for them.

oblique forge
#

Please provide the code entire.

nova crescent
#

btw thi si snot work

#

this isn't homework

#

it is just for fun

oblique forge
#

It wouldn't matter if it was homework, we're just a little more restricted as to what we can provide if it is.

nova crescent
#

oh

oblique forge
#

It's fine. Please provide all of the code.

sterile moss
#

I'm just saying we can assist you so that you write the code.

nova crescent
#

that is all of it

nova crescent
oblique forge
#

There should be an import statement at the top.

sterile moss
#

Must be some custom shtuff on whatever site that is. No matter.
So. How do you draw the line that the problem asks for?

nova crescent
#

oh it is automatically imported

oblique forge
#

Okay, then let's assume py from turtle import *...I think.

nova crescent
#

yes

sterile moss
#

How do you draw the line that the problem asks for?

nova crescent
#

Circle(10, 90)

#

but idk how to loop it properly

sterile moss
#

Read your current code. How does it draw one of these blue circles?
And then how does it draw a row of them?

nova crescent
#

it has "for i in range(10)"

#

for 10 rows

#

WAIT I GOT IT

#

thank you so much GriceTurrble ๐Ÿ˜„

sterile moss
#

Go for it ๐Ÿ™‚

#

thanks, Socrates /s

nova crescent
sterile moss
#

Trying to practice the Socratic method, just asking questions to lead folks to their own answers. ๐Ÿ™‚
Or are we just being rubber ducks, maybe? ๐Ÿค”

nova crescent
#

idk but thanks

proud frigateBOT
#
Python help channel closed using Discord native close action

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.