1 00:00:05,560 --> 00:00:13,380 Here even so we are so done with the computer most now and need function that is left in the computer 2 00:00:13,380 --> 00:00:19,440 most and we have not mentioned that one before because we do not have any idea that we required and 3 00:00:19,440 --> 00:00:20,150 unfortunately. 4 00:00:20,580 --> 00:00:27,420 So this is the again thing you need to know that whenever you tried something the function will get 5 00:00:28,460 --> 00:00:31,510 again and again that you needed these and you need that. 6 00:00:31,520 --> 00:00:38,830 So here we will define that function and forget the name that is select random. 7 00:00:40,360 --> 00:00:50,560 And here is select random and we will pass the barometer that is least because are selecting from the 8 00:00:50,560 --> 00:00:52,950 particular list that is available there. 9 00:00:53,080 --> 00:01:02,230 Then for that random we require to import the random and that's the thing that you can import even a 10 00:01:02,230 --> 00:01:03,550 function. 11 00:01:03,550 --> 00:01:08,400 So there is no boundary for you in Python you can do anything you want to. 12 00:01:09,160 --> 00:01:18,360 After that we will take a variable Ellen and give you the range of the length of the list. 13 00:01:18,650 --> 00:01:24,090 Because this actually means that we get the index strange. 14 00:01:24,400 --> 00:01:30,190 After that we can select anything from that one. 15 00:01:30,210 --> 00:01:37,140 It's just like if I have a list that is equal to something like X is equal to one two three. 16 00:01:37,220 --> 00:01:41,510 And if I get the length of this one that is you get three. 17 00:01:41,870 --> 00:01:44,290 So I have the three range of mind. 18 00:01:44,750 --> 00:01:54,900 So I will use something like random note brand range and then it will begin from the zero index to the 19 00:01:55,210 --> 00:01:57,430 line which is. 20 00:01:57,600 --> 00:02:03,210 In this case and it will be counted for 0 1 and 2 because the change top is not counted. 21 00:02:03,270 --> 00:02:11,690 So here generally we get the range of T indexes and one of these indexes is randomly selected and stored 22 00:02:11,690 --> 00:02:12,800 in the variable. 23 00:02:13,520 --> 00:02:19,580 And then we will just return the list value at that. 24 00:02:20,180 --> 00:02:26,960 So we are just selecting a random value from this list by using the range of its indexes. 25 00:02:26,960 --> 00:02:36,760 So that's what we are also done with the random function so we have created now all these functions. 26 00:02:36,800 --> 00:02:40,950 You can just step by step also check the errors there. 27 00:02:41,300 --> 00:02:47,090 If there is any edit or note so that you will not get added in the end. 28 00:02:47,330 --> 00:02:50,690 So here in this vignette code also 29 00:02:53,920 --> 00:03:00,640 added these parameters that is differences in this starting in the last because we have separated ints 30 00:03:00,730 --> 00:03:02,290 again and again in different time. 31 00:03:02,770 --> 00:03:12,390 Maybe we get this index it to prevent that do that thing and make a look at other functions also. 32 00:03:12,920 --> 00:03:17,380 So that's what we can do in the last year. 33 00:03:17,420 --> 00:03:22,810 So we are just left with no looping the interface and the main logic so seeing the next video.