Okay in this python programming we have this class and these objects. So we can create this class in Python using something like this. So this is our Hello module. So I can create a cross class message. Then I will have to create a new function add a new function. So let's see I put in text here.
I will create a class variable here first x equal empty. Okay, yeah, we'll sell Oh, x K. If I want to print this Hello, I want to create a class I can do something like this. The Fae, praying Hello. In class vo we will always need to put a self keyword or self inside this function. Okay. I can do something like this pre k Hello.
Okay. So that's okay. Let's see I want to create Oh, based on this cross I can do something like this. Okay. See I do mass equal Hello module message Okay then mass da, green Hello. Okay, hello dot message.
So, my init class here have a parameter here. So I have to put in some values. So I will put in on James Okay. Let's say I pray I run the code now. The idea is Hello James. Okay what is called to your school minister I in this untitled Python file, I created an object based on this message cross getting this message across I put in these gems here, Jane Smith value.
This James value will come to hear Okay and then you pour this value into this variable here. So it is a test variable will now have adisa Jas value and then when I call print hello it will print hello and the value here so you're printing Hello James case a print hello James ah let's see if I do not want to put in any values in these in it in here I can do away okay I can't bring in something like this okay then here I will have to put in a test case okay then I will print these So now Id creddies I create this object, I will not need to put in any values in the message here. I have to put in the values here. Click Run and then run the code. Again. Hello Jameson