Understanding the Colorization of Code in VEXcode IQ Python

When creating Text projects, the syntax, spacing, indenting, and spelling in your code in very important to ensure that your project runs as intended. The color coding present in the Workspace in VEXcode IQ Python is an extra visual cue that you have entered your code into your project correctly.

If there is an unrecognizable component while typing commands into the Workspace, it will remain black (like the user-created category). This can be a useful indicator as you are working to prevent frustration or extra troubleshooting later on.

Use the cursor and keyboard to correct errors. As the components are recognized, they will be colorized correctly.

The colorization of code follows the following conventions:

Classes

Screenshot of VEX IQ Python Tutorials section, showcasing various topics and resources for programming VEX IQ robots using Python, aimed at educators and students interested in robotics education.

The individual device the command pertains to (i.e. drivetrain, pen, brain)

Commands

Diagram illustrating various Python commands for programming VEX IQ robots, featuring examples and syntax to assist educators and students in learning robotics concepts through coding.

The behavior within the command (i.e. drive, turn)

Parameters

Flowchart illustrating parameters for Python programming in VEX IQ, highlighting key concepts and functions relevant to robotics education and project development.

Information about how the behavior executes (i.e. direction, distance)

Structures

Diagram illustrating the structural components and layout of the VEX IQ Robotics platform, showcasing various elements relevant to Python tutorials for educational robotics projects.

Control the flow of the project (i.e. conditionals, loops)

Values

A graphic depicting the core values of VEX IQ robotics education, highlighting collaboration, creativity, and critical thinking, designed to support educators and students in learning and applying robotics concepts.

Numerical parameter assigned to the behavior (i.e. number of degrees of a turn)

User Created

Screenshot of a user-created project in VEX IQ, showcasing programming code and robot design elements, illustrating concepts from the Python tutorials section of the VEX IQ knowledge base for educational and beginner robotics enthusiasts.

User created variables and commands

Comments

Screenshot of a Python tutorial interface for VEX IQ, displaying code examples and comments to guide users in programming VEX IQ robotics projects, aimed at educators and beginners in robotics.

The text following a # that will not effect the program.

For more information, help, and tips, check out the many resources at VEX Professional Development Plus

Last Updated: