Skip to main content

Because loops have not yet been introduced, the following is a perfectly acceptable solution:
A Python-based VEXcode program for a VEX Robotics project. The program begins with importing the VEX library using 'from vex import. It sets the arm_motor position to 0 degrees, then spins the motor forward and in reverse for 90 degrees. The program includes a 3-second wait, followed by spinning the motor forward and in reverse for 45 degrees three times. After a 5-second wait, the motor spins forward and in reverse for 90 degrees six times.

More advanced students might use loops to simplify the solution.

A Python-based VEXcode program for a VEX Robotics project. The program starts with importing the VEX library using from vex import. It then sets the position of 'arm_motor' to 0 degrees and spins the motor forward and in reverse for 90 degrees. After a 3-second wait, a loop runs twice, spinning the motor forward and in reverse for 45 degrees each time. Following a 5-second wait, another loop runs three times, spinning the motor forward and in reverse for 90 degrees each time.