PreLab 1 · Before Unit 1
The Toolchain
PreLab · Python track — completion checklist
Student PIN:
PreLab 1 Get the Robot Listening to You
Completion only again. The point is that by the end of this page your robot has run a program that you typed, and you have written down the numbers you will need every session after this.
Write these in your notebook as well. You will type them at the start of every session.
Python is read line by line rather than compiled ahead of time, but the same rules from C still hold — the machine cannot guess what you meant. Unlike C, indentation is part of the instruction, so incorrect indentation will cause an error.
Make a new project called hello and type this in. Do not paste it — type it.
#!/usr/bin/python3
import os, sys
sys.path.append("/usr/lib")
import _kipr as k
def main():
print("Ready?")
print("Go!")
main()Sign off
You are ready
Lab 1.1 — Computers Follow Instructions assumes everything on this page. Start there.
When you are finished, press the button to turn in your work and save a copy.
KIPR · Botball Explorer — CS1 + AI Literacy · © KISS Institute for Practical Robotics 1997–2026