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
- From blocks to Python · about 25 min
- Driving with Python · about 30 min
- Loops and variables · about 30 min
- Sensors in Python · about 30 min
- Functions that score · about 30 min
- Your Python Skills program · about 40 min