What Is this Error? - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: What Is this Error? (/thread-39535.html) |
What Is this Error? - the_jl_zone - Mar-03-2023 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? RE: What Is this Error? - Axel_Erfurt - Mar-03-2023 Please don't post images. Post your code and error messages in tags. (insert python, insert output) RE: What Is this Error? - deanhystad - Mar-03-2023 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. RE: What Is this Error? - buran - Mar-04-2023 In if statement you want comparison == , not assignment =
RE: What Is this Error? - the_jl_zone - Mar-06-2023 (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. RE: What Is this Error? - the_jl_zone - Mar-06-2023 (Mar-04-2023, 04:53 AM)buran Wrote: In Thanks |