 Hey, what's going on guys? Rutanel here, and now we're taking a look at more string variables and functions inside Python So let's check it out. Let's get idle started. Let's create our skeleton program Let's save mine as a file.python usr bin Environment Python class. Oh, I got the wi screwed up. Dang it. All right define the constructor self Okay, now we're ready to roll. Let's create a new string here. Let's call this string obviously this is a string and Now let's check out a new function today We're gonna be taking a ginder at the is a digit function. In fact, let's make sure that's the right thing We have a string Now we can use our dot selector and see what we can do here and it is is digit So what it will do is a Boolean function again that will return whether or not There is a digit or at least that string is made up of digits or numbers and that sort of thing. So if you have That number that'll be returned true But if you had like an a in there and some other numbers it returns false because it's not a digit You've got this random a in there So that's all we're gonna look through today and we're gonna be using our string module like we tried last time So let's import that import string and now let's create a new function define is numbers Is is full of digits? It's full of digits. That's a pretty lengthy function name, but I guess it's okay string to look through And I got a pretty lengthy variable name, but hey the more the more precise and definitive it is the better so Let's create a loop here for character in string to look through I'm gonna be looping through the string as always and we can test if the character is in string dot digits, and we're gonna be using our dot selector so we can get the digits Character the character set that string the information the variable out of this module and remember we want to be looking for digits So if it's not a character in the digit in the string digits we can return False and here we can return true So if we check out in the interactive shell though, we can check out string dot digits. Oh We got to import string first of all It's string dot digits We have a length or at least we have a string of all of these numbers that we would normally be looking for So if we run now self-dot string actually self-dot is full of of digits We can pass in self-dot string We print that out We do want to be able to see what we're getting here It'll say false because there are there aren't any numbers in there at all So if we just typed in three twenty three though, that'll work because that's true If we had any characters in there It'll say that's false if we had any spaces in there It'll say it's false because it's checking for anything that is inside the string dot digit string So anything that is a number in our case and if we if it sees anything that isn't a number it has a hissy fit So that's that's all though This is real easy and simple and it's building off that idea that we were looking at yesterday or at least in the last video And we're checking out with the string module and there's a lot more we can do with this So thank you guys for watching. I hope you enjoyed this. I know it was quick and easy But hey, that's the way things should be See you in the next tutorial guys. Bye