Understanding the Colorization of Code in VEXcode V5 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 EXP 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

Diagram illustrating V5 class categories in Python tutorials, featuring a flowchart of class relationships and functionalities.

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

Commands

Flowchart illustrating various Python commands for VEX V5 robotics, highlighting key functions and their relationships in a tutorial context.

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

Parameters

Diagram illustrating parameters in Python programming, showing various parameter types and their usage. Relevant to V5 Category Description and Python Tutorials.

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

Structures

Diagram illustrating the structure of VEX V5 programming components in Python tutorials, highlighting key elements and their relationships for effective robotics programming.

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

Values

A visual representation of VEX V5 values, illustrating key concepts related to Python tutorials, including programming principles and best practices for robotics development.

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

User Created

Screenshot of a user-created Python tutorial interface, showcasing code snippets and instructions for V5 category description, highlighting key features and functionality for learners.

User created variables and commands

Comments

Screenshot of a comments section in a Python tutorial, displaying user feedback and interactions related to the V5 category description.

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: