Skip to main content

Lesson 1: Computer Science Level 1 - Python

Learning Outcomes

  • Identify that a programming language is a set of rules in which symbols represent actions.
  • Identify that behaviors are actions performed by a robot defined by the programming language.
  • Identify that a robot’s behavior is changed by changing the commands in a program.

What is a programming language?

A programming language is a set of rules in which symbols represent actions. Programming languages follow step-by-step instructions that a computer executes in order for a project to run. In this course, VEXcode VR Python is the programming language for a VR Robot.

The VEXcode VR interface with a Python project open. Available Python commands are inside the toolbox on the left, with the drivetrain.drive_for command in the coding area. The Castle Crashers Playground is open on the bottom right of the screen.

What is a behavior?

Behaviors are the actions performed or to be performed by a robot. Moving forward, stopping, turning, looking for an obstacle — these are all behaviors. Behaviors are defined by the programming language.

To change the behaviors of a VR Robot, you can change the commands in the project.

The VEXcode VR interface with a Python project open. The drivetrain.drive_for command in the toolbox and in the coding interface is highlighted with a red box.

Questions

Please select a link below to access the lesson quiz.

Google Doc / .docx / .pdf