1 00:00:00,120 --> 00:00:10,430 We will discuss about one of the built in functions that does help in this session every object in Python 2 00:00:10,720 --> 00:00:20,600 contains a reference to a string and this string contains a concise summary of the object and how to 3 00:00:20,600 --> 00:00:30,460 use it and the python's built in function help can access this information and display the result. 4 00:00:30,530 --> 00:00:35,210 So let us use the help function. 5 00:00:35,210 --> 00:00:46,760 Say for example we want to see the documentation for the Lent function in e in so let's pass this as 6 00:00:46,850 --> 00:00:51,270 an argument to the help function and then execute this line. 7 00:00:52,400 --> 00:00:58,560 So here you see information regarding the lend function. 8 00:00:58,760 --> 00:01:09,400 So the lend function returns the number of items in our container next let us pass the data type string 9 00:01:10,030 --> 00:01:19,580 to the help function and then execute this line apart from the documentation that is specified here. 10 00:01:19,600 --> 00:01:26,900 You can also see the different methods that can be called on this data type. 11 00:01:26,980 --> 00:01:31,560 String say for example the method capitalize. 12 00:01:32,400 --> 00:01:38,820 So this is how you can call method on a string using the dot operator. 13 00:01:38,820 --> 00:01:42,060 Case fold center count. 14 00:01:42,150 --> 00:01:51,450 So these are the different method that can be called on a string if you do not pass any argument to 15 00:01:51,450 --> 00:01:54,590 the help function and then execute. 16 00:01:54,840 --> 00:02:05,230 Here you see some interaction about the help system and then we also have the help prompt wherein you 17 00:02:05,230 --> 00:02:11,630 can type the keywords or any topics that you want to search for. 18 00:02:11,650 --> 00:02:21,440 So let in the list and then execute so you're busy. 19 00:02:21,580 --> 00:02:33,210 The differing methods that can be used on the list object and if you want to quit from the health system 20 00:02:33,210 --> 00:02:35,370 you can type. 21 00:02:35,380 --> 00:02:37,350 Good and then hit enter. 22 00:02:38,100 --> 00:02:44,330 So we have exited out of the health system and return to the interpreter. 23 00:02:44,340 --> 00:02:49,620 Next we will talk about another feature known as the tab completion. 24 00:02:49,710 --> 00:02:56,060 Every python object has various attributes and methods associated with it. 25 00:02:56,730 --> 00:03:07,120 So let us define a string SD are 1 and this is the string that is assigned to SD R1. 26 00:03:07,200 --> 00:03:17,130 Now if I want to perform any modification to the string art I want to manipulate the string I can use 27 00:03:17,250 --> 00:03:25,060 different methods on the string and in order to see the list of methods that can be used on a string. 28 00:03:25,110 --> 00:03:36,900 You can use the tap completion so for that type in your string SD are one dot and then hit tab the tab 29 00:03:36,900 --> 00:03:46,200 button on your keyboard so after you heard the tab game you see the different methods that can be called 30 00:03:46,320 --> 00:03:47,030 on the string. 31 00:03:47,250 --> 00:03:50,330 So let us choose this method. 32 00:03:50,400 --> 00:04:03,010 Put on the string and then execute so the case of all the characters in the string have been changed. 33 00:04:03,030 --> 00:04:04,830 Let's see another example. 34 00:04:04,830 --> 00:04:14,160 So let's give the string is the odd one and then hit the tab key so browse through all of the different 35 00:04:14,490 --> 00:04:17,860 method that can be applied on the string. 36 00:04:17,880 --> 00:04:22,650 So let's choose this method is Alpha. 37 00:04:22,750 --> 00:04:23,800 Execute. 38 00:04:23,830 --> 00:04:31,850 And if all of the characters in the string are alphanumeric this is going to return true. 39 00:04:33,180 --> 00:04:38,790 This functionality can be used on lists and other Python objects.