CMU CS Academy provides a simplified wrapper for the matplotlib library. Students typically use functions such as:
Understanding how to pass the correct arguments (the list of x-coordinates and the list of y-coordinates) is the core coding challenge of this unit. 6.3.5 Cmu Cs Academy
If the CMU CS Academy environment shows red "Test Failed" for 6.3.5, use these debugging tricks: CMU CS Academy provides a simplified wrapper for
If you only use onKeyPress, your shape will move once, pause, and then move again (because of the computer's key-repeat delay). This feels "jerky."
The Solution: You need a helper variable (Boolean) to track if the key is held down. Understanding how to pass the correct arguments (the