WEBVTT

00:00.610 --> 00:05.320
You can use individual values from a list just as you would any other variable.

00:05.590 --> 00:10.030
For example, you can use F strings to create a message based on a value from a list.

00:10.390 --> 00:12.910
Let's try pulling the first course.

00:13.310 --> 00:18.700
Course topic from the list and composing a message using that value.

00:18.820 --> 00:21.160
So here we will print.

00:21.820 --> 00:25.330
Actually instead of printing, let's create a message here.

00:25.480 --> 00:29.200
Message and here.

00:32.180 --> 00:36.860
Well f here and after that my or.

00:36.950 --> 00:37.730
Yes.

00:39.360 --> 00:43.320
Let's actually write what we can write about topics of our course.

00:44.840 --> 00:46.730
I like.

00:49.700 --> 00:50.330
Python.

00:50.780 --> 00:52.900
So in this case, we will use that.

00:52.910 --> 00:53.750
So.

00:54.570 --> 01:01.050
Python or of course, topics here and we will enter the index here.

01:01.050 --> 01:04.020
So let's let's count now zero.

01:06.400 --> 01:10.260
Zero one, two, three.

01:10.270 --> 01:11.830
So Python.

01:12.010 --> 01:13.150
Python.

01:14.760 --> 01:16.860
Has index of.

01:17.900 --> 01:18.380
Three.

01:20.300 --> 01:21.290
Let's try this now.

01:21.680 --> 01:22.490
Three.

01:24.190 --> 01:26.510
And after that we will lose the title.

01:26.740 --> 01:28.990
Actually, let's use the uppercase.

01:32.430 --> 01:33.840
Here upper.

01:36.140 --> 01:38.180
So I like the.

01:39.190 --> 01:40.960
Python course topic.

01:40.960 --> 01:44.740
And after that we will use the course.

01:45.040 --> 01:45.820
That's it.

01:48.420 --> 01:50.240
And after that we will print.

01:50.790 --> 01:52.530
Print message.

01:53.670 --> 02:00.660
And that's you can see here, I like the python cause we built a sentence using the course topics index

02:00.660 --> 02:03.030
three and assign it to the variable message.

02:03.030 --> 02:11.310
And the output is a simple sentence about the who likes and what I like about programming.
