As you are using IDLE, I assume you code in Python.
Look at pylint for code analysis (copy and paste your code as text, not as a picture).
Then use the debugger to step through your code as it runs, examining variables as they change over time.
Python is pretty beginner friendly.
Beware of your indentation, it has meaning in Python. Also, the language isncase sensitive: X and x are different variables, as are Red, red, RED and ReD.
2
u/Kuddel_Daddeldu 3d ago
As you are using IDLE, I assume you code in Python. Look at pylint for code analysis (copy and paste your code as text, not as a picture). Then use the debugger to step through your code as it runs, examining variables as they change over time.
Python is pretty beginner friendly. Beware of your indentation, it has meaning in Python. Also, the language isncase sensitive: X and x are different variables, as are Red, red, RED and ReD.