#๐Ÿ”’ dont know how to do this cmu academy exciersize and i need to finish it tonight please help!!!

33 messages ยท Page 1 of 1 (latest)

thin scaffold
#

would appreciate a explination and code for this!!

hollow latchBOT
#

@thin scaffold

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.

thin scaffold
#

heres the code they give too u right of the bat

#

# Define the platform and ball variables.
### (HINT: You can't see the left-top of the platform so try to position it by
#          using a different alignment!)
### Fix Your Code Here ###
# platform =
# ball =

def onMousePress(mouseX, mouseY):
    # Rotate the platform and bounce the ball.
    ### (HINT: Change the ball's bottom so that it matches the platform's top.)
    ### Place Your Code Here ###
    pass```
hollow latchBOT
#

Hey @thin scaffold!

It looks like you pasted Python code without syntax highlighting.

Please use syntax highlighting to improve the legibility of your code and make it easier for us to help you.

To do this, use the following method:
```py
print('Hello, world!')
```

This will result in the following:

print('Hello, world!')```
You can **edit your original message** to correct your code block.
viscid venture
thin scaffold
#

like this stuff?

#

i started it a little with chat gpt but i think the free version is really bad lol

viscid venture
#

What's your question tho? This is 2.4 of the course, did you successfully solve everything before this?

thin scaffold
#

basiclly

viscid venture
thin scaffold
#

i have to make the ball bounce while it moves

#

i can send u a video

viscid venture
#

Do you know how to move the ball?

thin scaffold
#

dont really know anything

#

about the moving stuff

#

i do understand the mouse realease stuff

viscid venture
#

I really can't help you then. If you didn't learn the previous steps, you need to go back to the beginning and make sure you understand. The course only gets harder

thin scaffold
#

i just need taht this is due tonight and i have no way of understanding it in a pinch

viscid venture
#

I'm not going to do your work, and nobody on this server will.

#

We're here to help ppl learn, not help them not learn.

thin scaffold
viscid venture
#

(Tbf, I can relate... I've let myself get in this situation before)

thin scaffold
#

!close

hollow latchBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, 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.