Hi, everybody, and welcome, and this lecture will discuss practice at Bond to this, and this would
be finalize the basics of this.
And after the next video, we'll discuss Advanced Alice and we will apply advanced manipulations, for
example, adding values into this using index or just using a action and so on.
So before we begin, as always, I'll remind you that it's very important to practice and try to resolve
all the assignments by yourselves and only if you get into trouble, then watch the next video for the
resolution.
All right.
So let's begin.
So, first of all, let's create up.
Sorry.
Let's create a list of cars with the following car brands inside the list and print it out and then
try to pull out that one default last value from the list.
We went over the material in the previous video, right and right after an assignment.
Number three, try using equals sign from comparison operators, which we've already completed.
And please compare using the equals.
Sign the index one from the list.
Just want to remind you that the list starts from index zero, then indexed one, index two and so on.
So just compare the cell number one to the string Toyota and this will bring us a boolean result, meaning
false or true, if these two items are equals or not.
So this will result a boolean result.
So just print out the result right afterwards and assign a number for just create a mixed values list.
All right.
So I didn't mention the type of variables right here because you're already familiar with all of them.
But you would need to decide by yourself when to want to put quotation marks.
For example, this is a name.
It's only letters.
So obviously, once you once you implemented inside the list, you need to apply quotation marks to
make it a string.
And right afterwards it's a number.
So this is an integer and so on and so on.
And the last one I made a comment here without quotation marks, meaning beside them then will obviously
be a boolean.
OK, so after that, an assignment number four, try to print out the values from this list.
Mixed values in the indexes from zero to three, including three.
All right.
So just a quick reminder.
We went over in the previous video that once you use the once you use the boundaries, you pull out
like that.
So the limit here is not included.
So if you want to print out from zero to three, including three, you will need to put, uh, not a
three number in the brackets.
All right.
Just like we can't.
And all right.
So afterwards, take this list and print out value index in index six.
So here I would like to intervene because I usually don't like to give you easy times when we are practicing,
because I want you to practice by yourselves so the material will go into your DNA.
But here I would have to say that this would cause an error.
Right.
We've already went through it.
Once we pull out an index that does not exist because this is index zero, one, two, three and four.
So obviously we do not have index six.
And once we try to pull out this value, it will cause an error and meaning all the code that will go
after this section would not be applied.
It will not initiate because once we have an error in the code, all what comes after is basically it
would not run.
So I made this seventh assignment.
All right, Mark, the resolution of Task six and comment it out.
And how do you do it?
You just market as I do it right here and then the control and backslash button.
This will cost the following thing.
For example, I'm having text once you mark all all that and you put once you mark all that and apply
control backslash, you will see this sign comes before your text and text will be commented out.
So all at once you run the code and the line will be ignored.
All right.
And I will coming to the eighth assignment, which is a bonus and it is a bonus for obvious reason.
And let's go over the assignment to the list from task one.
Add the name Alpha Male as the line item.
All right.
So this material we have not covered yet, it will be covered in previous videos.
And I want you to try to resolve it by going to Google.
And why is that?
Because soon you will become automation developers.
And once a developer wants to study and you think he just goes to Google.
So this is what I want you actually to practice here.
I actually want you to practice how to search in Google.
And I'll just give you a quick can't just go to Google and type in.
Like bettong seats already marked how to add item to list, and then you have many results, you try
to click on one of the first ones and try to find the resolution for that.
All right.
So that's about it.
You guys try to resolve all these assignments by ourselves and see you in the next video.