I have been working on a little graphics presentation using Python that has a ball that bounces up and down using while loops and timers. But for some reason this error message keeps coming up for my MAX_HEIGHT variable. Does anyone have an idea about what's happening here or what I need to change?
What Is this Error?
What Is this Error?
|
Mar-03-2023, 09:17 PM
(This post was last modified: Mar-03-2023, 09:17 PM by Axel_Erfurt.)
Please don't post images. Post your code and error messages in tags. (insert python, insert output)
Mar-03-2023, 10:14 PM
(This post was last modified: Mar-03-2023, 10:14 PM by deanhystad.)
The error has nothing to do with the MAX_HEIGHT variable. ball.get_y() is a function call. You cannot assign a value to a function call.
Mar-04-2023, 04:53 AM
In
if statement you want comparison == , not assignment =
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link Create MCV example Debug small programs
Mar-06-2023, 09:31 PM
Mar-06-2023, 09:32 PM
|
|
Users browsing this thread: 1 Guest(s)