WEBVTT

00:00.330 --> 00:04.170
Shaking values in lists with if else statements

00:10.760 --> 00:16.090
it's important to know how to check for Milliman if is it in the list or not.

00:16.190 --> 00:23.880
Because if you build a game or a Web site you need to check for the username if it exists in your server.

00:24.360 --> 00:30.920
Nope we will use the keyword in within the if else statements to check for the name.

00:31.070 --> 00:39.490
If it's in the list or not let's see how first brackets

00:43.790 --> 00:49.220
so that you got a list called my A list inside this list.

00:49.220 --> 00:53.340
You had elements of John Nancy MIA.

00:53.600 --> 01:00.040
So now to check if John user name is in the list we can use Ifill's statements.

01:04.180 --> 01:07.840
Such as if John with quotation marks.

01:07.940 --> 01:14.980
Email us call and then prenticed if it's on the list ill's call in then brain.

01:15.010 --> 01:17.350
No it's not in the list after that.

01:17.350 --> 01:27.850
Try that on terminal.

01:29.040 --> 01:29.790
Very good.

01:29.800 --> 01:33.960
Works well it shows that John is in the list.

01:33.960 --> 01:41.180
We also can add a new element in the condition check if it's in the list such as.

01:41.220 --> 01:45.200
And Nancy within quotation marks in my list

01:52.210 --> 01:56.350
who it says Nancy is in the list also.

01:57.370 --> 01:58.080
OK.

01:58.240 --> 01:59.710
That's everything for now.

01:59.860 --> 02:07.210
Thank you very much.
