WEBVTT

00:00:00.000 --> 00:00:03.617
Let's make a tiny program and see what it does.

00:00:03.617 --> 00:00:05.787
Open Code Sandbox from Study Tools.

00:00:05.787 --> 00:00:10.850
We'll use Python and start with something simple enough to
understand at a glance.

00:00:11.500 --> 00:00:15.740
In the editor, we'll print a greeting, then add two numbers.

00:00:15.740 --> 00:00:20.750
Before you run it, make a prediction: what should appear in the
output?

00:00:20.750 --> 00:00:24.990
That small check makes coding a learning activity, instead of
guesswork.

00:00:25.640 --> 00:00:26.333
Choose Run.

00:00:26.333 --> 00:00:28.758
Now compare the output with your prediction.

00:00:28.758 --> 00:00:33.609
If you see an error, read the message and check the line it
names.

00:00:33.609 --> 00:00:37.420
Fix one thing at a time, then run the program again.

00:00:38.070 --> 00:00:41.541
Let's change the numbers and run it once more.

00:00:41.541 --> 00:00:43.469
Watch how the output changes.

00:00:43.469 --> 00:00:49.640
You've just practiced a useful coding habit: make a prediction,
test it, and explain the result.

