foreign let's continue our discussion on string Methods this is part 6 of string Methods the first topic is is Alpha method the second topic is is numeric method the third topic is is LM method and after this we will see one homework problem so let's start with the first topic which is is Alpha method so what is is Alpha method is Alpha method returns true if all characters are alphabet so this means that all characters must line the range from A to Z small a to small Z or capital A to capital z now let's see the syntax of is Alpha we need to put the string first and then to the string we can apply is Alpha method so string dot is Alpha then after this parentheses should come now let's open our Command Prompt and let's see one example which helps us understand how is Alpha function works for this we first need to open our Command Prompt and we need to activate the python interactive shell after activating the python interactive shell we will be ready to type in the commands here let's type this command hello to dot is Alpha then parentheses so we have the string and Dot then is Alpha method and within parentheses we should not provide any arguments if we hit enter we will get false as a result because this is not an alphabet all other letters are alphabet but this is not an alphabet hence is Alpha will return false now let's see one more example this time let's type this command hello I am just preet dot is Alpha now what should be the output of this line of code think about it if we hit enter we will get false as a result now why is that the case it seems like this string consists of all alphabet only but it is not the case we have white space characters as well and white space characters are not alphabet hence this particular line of code will return false now let's see one more example this time let's type hello I am just preet dot is Alpha now this time there is no white space if we hit enter we will get true as a result because each and every character is an alphabet in the string I hope the ID of is Alpha is completely clear we need to remember this that is Alpha returns true if all characters are alphabet not even wide space characters are allowed as now we have understood this topic let's move on to the next topic which is is numeric method now what is is numeric method is numeric method returns true if all characters are numbers from 0 to 9 so all characters need to be numbers the syntax is string dot is numeric then parentheses and again within parentheses we do not have to pass any argument now let's open our Command Prompt and let's type this command 2332324 within double quotes then dot is numeric and then parentheses remember that the string should not always be wrapped within double quotes it can be wrapped within single quotes as well both are correct in Python now this is the string and we are applying is numeric function on the string now what happens in this case if we hit enter if we hit enter we will get true as a result now why is that the case all characters in this string are numbers we can observe this that each character is a number therefore is numeric function will return true in this case let's consider one more example this time let's type 3.14159 within double quotes and then dot then is numeric and then parentheses if we hit enter we'll get false as a result now why is that the case 3.14159 is a number but this decimal point is not the decimal point within this string it is a full stop is numeric function will return true when all characters are numbers this is not a number this is a full stop hence is numeric function in this case is returning false I hope this is clear although it looks like a number but this decimal point is not a number this represents Full Stop in this string hence is numeric function will return false now let's move on to the next example this time we will type 2 divided by 4 dot is numeric and then parentheses if we hit enter we'll get false as a result you might think like this will evaluate down to some value but it is not the case this is a string and it will be evaluated as it is so here this divide symbol is not actually a divide symbol this is a backslash in a string therefore is numeric function will return false in this case now let's move on to the next example this time let's type -3425 dot is numeric and then parentheses if we hit enter we'll get false as a result now why is that the case here this is minus three four two five it seems like a valid number but this minus is not minus within string it is just a hyphen hence is numeric function will return false in this case I hope the idea of is numeric is completely clear now let's move on to the next topic which is is method so what is is LM method is LM method returns true if all characters are alphanumeric as the name itself suggests it has Alpha and numeric both so is al-num returns true if all characters are alphanumeric the syntax looks like this we first need to type the string then dot then is L num can be applied on that string now let's open the command prompt and let's type this command just press 20 dot is alnum and then these parentheses now if we hit enter we will get true as a result because this string is a combination of alphabet and numbers these are all alphabet and these are digits numbers so is alnum in this case returns true let's move on to the next example this time let's type double two three two four two four two this string consists of only numbers if we hit enter we will get true as a result because this string has only numbers and is al-num will return true if all characters are either alphabet or numbers or both so in this case we will get true as a result now let's move on to the next example this time let's type Just Breathe dot is L num so here also we will get true as a result because this consists of only alphabet now let's see the last example this time we have this entire string and then is alnum if we hit enter we will get false as a result now why is that the case here we have white space characters in between and is album returns true only when the string consists of alphabet or numbers or both in this string we have alphabet but we also have these wide spaces and because of these wide spaces is alum will return false I hope this idea is completely clear and this means we are done with these three topics now let's see what is the homework problem of this presentation determine the output for each line of code mentioned below so we have this complete code and now your job is to determine the output of this code but don't go directly into the command prompt and type these commands Instead try solving this problem on your own first and then compare your output with the output of the command prompt after getting the answers post your answers in the comment section below so now we have seen the homework problem as well and this means that we are done with all the topics of this presentation okay friends this is it for now thank you for watching this presentation I will see you in the next one [Music] [Applause] [Music]