Here even so we are so done with the computer most now and need function that is left in the computer
most and we have not mentioned that one before because we do not have any idea that we required and
unfortunately.
So this is the again thing you need to know that whenever you tried something the function will get
again and again that you needed these and you need that.
So here we will define that function and forget the name that is select random.
And here is select random and we will pass the barometer that is least because are selecting from the
particular list that is available there.
Then for that random we require to import the random and that's the thing that you can import even a
function.
So there is no boundary for you in Python you can do anything you want to.
After that we will take a variable Ellen and give you the range of the length of the list.
Because this actually means that we get the index strange.
After that we can select anything from that one.
It's just like if I have a list that is equal to something like X is equal to one two three.
And if I get the length of this one that is you get three.
So I have the three range of mind.
So I will use something like random note brand range and then it will begin from the zero index to the
line which is.
In this case and it will be counted for 0 1 and 2 because the change top is not counted.
So here generally we get the range of T indexes and one of these indexes is randomly selected and stored
in the variable.
And then we will just return the list value at that.
So we are just selecting a random value from this list by using the range of its indexes.
So that's what we are also done with the random function so we have created now all these functions.
You can just step by step also check the errors there.
If there is any edit or note so that you will not get added in the end.
So here in this vignette code also
added these parameters that is differences in this starting in the last because we have separated ints
again and again in different time.
Maybe we get this index it to prevent that do that thing and make a look at other functions also.
So that's what we can do in the last year.
So we are just left with no looping the interface and the main logic so seeing the next video.