You aren't just drawing a circle anymore; you’re drawing a circle that changes color when the mouse is in a specific quadrant and a certain variable is true.
def onAppStart(app): global circle # Create blue circle at center of 400x400 canvas circle = Circle(200, 200, 20, fill='blue') # Add it to the canvas add(circle)
Which specific are you taking (e.g., CS1, CS0, or AP CSP)?
: Use the built-in reference guide on the right side of the CMU CS Academy text editor. It contains exact syntax examples for the shapes and methods you need.
To write a function that processes a 2D grid (list of lists) using nested loops to either:
function in Python. Depending on the specific version of the curriculum being used (such as CS1 or CSP), the exact exercise may vary, but common variations include "Triforce," "Boat in Ball Pool," or "DVD Screensaver". Core Learning Objectives : Understanding how to use the
: An introduction to the concepts of AI and ML, including basic algorithms and applications.
that requires you to animate three triangles (polygons) using statements and property changes.
Here’s a you could implement for 6.3.5 that fits the spirit of CMU CSA (using Rect , Circle , onMousePress , onKeyHold , etc.):