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?
Please don't post images. Post your code and error messages in tags. (insert python, insert output)
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.
In if
statement you want comparison ==
, not assignment =
(Mar-03-2023, 09:17 PM)Axel_Erfurt Wrote: [ -> ]Please don't post images. Post your code and error messages in tags. (insert python, insert output)
Thanks for letting me know.
(Mar-04-2023, 04:53 AM)buran Wrote: [ -> ]In if
statement you want comparison ==
, not assignment =
Thanks