IQ Python · Mission 1 of 6 · about 25 min · Free

From blocks to Python

Python is typed code. It does the same things as blocks, with words instead of puzzle pieces.

→ # when started (the program starts at the top) drivetrain.drive_for(FORWARD, 300, MM) drivetrain.turn_for(RIGHT, 90, DEGREES) wait(1, SECONDS) Read a Python line drivetrain . drive_for ( FORWARD , 300 , MM ) ⚠️ Watch out: if you leave out MM , VEX uses inches ! drive_for(FORWARD, 300) drives 300 inches, way off the field. Try real Python

Ends with a 6-question quiz.

Next mission: Driving with Python

All IQ Python missions

  1. From blocks to Python · about 25 min
  2. Driving with Python · about 30 min
  3. Loops and variables · about 30 min
  4. Sensors in Python · about 30 min
  5. Functions that score · about 30 min
  6. Your Python Skills program · about 40 min

Home · Courses · Pricing · Story · Studio · VEX IQ