WEBVTT

00:00:00.000 --> 00:00:03.596
Programming means writing instructions a computer can follow.

00:00:03.596 --> 00:00:07.772
In Python, the print function displays a message such as, Hello, world.

00:00:07.772 --> 00:00:10.556
Text inside matching quotes is called a string.

00:00:10.556 --> 00:00:13.688
Notice that the quotes and parentheses come in pairs.

00:00:13.688 --> 00:00:15.254
Those small details matter.

00:00:16.458 --> 00:00:18.295
Next, save a name in a variable.

00:00:18.295 --> 00:00:21.857
Think of a variable as a label you can use to refer to a value.

00:00:21.857 --> 00:00:24.695
Join a greeting to that name and print the result.

00:00:24.695 --> 00:00:28.146
Change the name, and the same instruction greets someone else.

00:00:29.375 --> 00:00:33.976
To display the same message three times, you do not need to copy it three times.

00:00:33.976 --> 00:00:34.885
Use a for loop.

00:00:34.885 --> 00:00:37.725
Here, range three makes the loop run three times.

00:00:37.725 --> 00:00:43.065
Indentation shows Python which instructions belong inside the loop and should repeat together.

00:00:44.292 --> 00:00:49.066
Now replace Alex with your own name and change the repeat count from three to five.

00:00:49.066 --> 00:00:53.328
If you see an error, check the quotes, parentheses, and indentation first.

00:00:53.328 --> 00:00:56.170
Read a little, change a little, and run it again.

00:00:56.170 --> 00:00:58.045
That is a practical way to begin.
