Hello, in this video we are going to look at pythons membership operators. So membership operators check if essentially a value is you know part of a sequence such as you know, lifts to pause strings, etc. So there are basically two things that you can check for if it's in there or if it's not in there. Simple on that. So we'll create a string first. So a quick string, call it string will sign the revenue of world and what we'll do is print off the result of whether it's in it or not, you know a certain character and this will just return true or false.
This can be used in conjunction with stuff like conditional statements and we'll be covering that later on as well. If you wish anything that returns true or false, can be used in line with that. Okay, so going back to this we are going to do this format is first of all, you specify the actual value that you want to check for. So I'm gonna put a character, and also H is hate in string. And what I'm going to do is do a level bomb this time. So now I'm gonna do another method.
So is he not in string? And is dead not in string so this should produce true false false true and look. Okay, so true false false true, because it ages from one Yes. Is the first character is that extreme or no? That's false. H 931 well it is so that is a 91 it is an in there so that returns true.
So that's it for membership operator. couldn't be simpler than that fans watching and I look forward to seeing you in the next video.