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.
The Wombat broadcasts a WiFi network to which your computer can connect. First, note the SSID and Password. From your devices WiFi settings, look for a network that matches the SSID, then use the password. If you aren’t sure if something is the letter “O” or the number “0”, it is the number “0.”
Once your computer is connected, open a browser and type the the address you see on the WiFi line in on the Wombat about page, followed by “:8888.” For example:
This warning is normal
You will probably see something like “no internet connection” or “connected with limited access.” Nothing is wrong. The Wombat is not the internet — it is just a robot. Keep going.
Warning for Windows Users
Windows may try to get you to connect using a PIN. Click Connect using a security key instead, then enter the password as normal.
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()Anatomy of This Program
For now, treat every line except the two lines as boilerplate — standard pieces you copy into every program. Those lines connect Python to the Wombat’s robot commands, mark the part of the program that runs, and start it. You will learn how they work later.
The lines to understand today are print("Ready?") and print("Go!"). print displays the text between the quotation marks in the IDE’s output area. Each print starts a new line after its message, which is why Ready? and Go! appear on separate lines.
An f-string lets you put a value inside a message. Put f before the opening quotation mark and put the value inside curly braces:
print(f"Trial: {1}")The curly braces are a placeholder for the value inside them, so the output is Trial: 1. An f-string can contain more than one pair of curly braces when you need to insert more than one value.
Shutdown Guide
Do not just flip the switch. Do it in this order:
- On the Home Screen, press Shutdown.
- Press Yes to confirm.
- Wait for it to finish, then flip the power switch off.
- Unplug the battery — hold the yellow connectors, never the wires.
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–2027