Hi, I’m one of the 45 views that you had. I looked and went “oh a homework project” and moved on. I did note that you had print statements, so I figured that you knew how to print data out on steps to see what it was seeing,
You just dumped the code out there. There wasn’t any indication of what you were seeing. Were you able to identify the colors of the ball? What other things did you notice when you ran your program. What did you try that worked / didn’t work?
As you worked on it across the last 12 days you could have posted any progress you had made.
But like the post above this notes, this isn’t really set up to do homework.
Help us help you may be of help in the future.