Every IOAI notebook begins the same way: you give the computer instructions, run them, inspect what happened, and improve the next instruction.
Welcome to the playground
Code is a precise set of instructions
- Explain what a Python program does
- Run code and read its output
- Recognize that order matters
Imagine a very fast kitchen assistant who follows a recipe literally from top to bottom. Python does not guess what you meant. It reads each instruction in order, and the output panel is where it reports the result.
Syntax shelf
PythonThe shapes to recognize
print("Hello, Python!")
# A comment explains code
print(2 + 3)See it move
1 / 3From instruction to result
Tap through the pipeline. The computer does not skip the middle step.
You writeprint("Hello!")
A precise instruction written in Python.
Active recall
What decides the order in which these instructions run?
Build it
Make the playground print exactly “Hello, Python!” including the comma and exclamation mark.
Expected output
Hello, Python!⌘ Enter to run · ⌘ Shift Enter to check
Need a nudge?
Hints reveal one idea at a time, not the whole answer.