On different models, so let us discuss on it.
A Python model is simply a python source file, which can expose classis functions and global vegetables,
and when imported from another python source file, the file name is treated as a namespace.
So a Python package is simply a directory of python models.
So, so many models are different.
So many libraries are different in Python.
So that's why this python is so powerful that they are nothing.
But these models are nothing but poorly written.
Python source calls.
We can import them in our current model as we are required to use those functions classes as when required
so that we are need not to rewrite the code once again.
So this model importing is actually enhancing the property known as reusability of the programming code
as examples we can go for, say, import non-pay.
Also, we can use some alias that is important vampi as it should be.
So next time, whenever we are supposed to access any component from this non-pay so you can go for
this non-pay dot or you can go for this N.P. dot, in this way we can also access it.
So let us go for one practical demonstration.
For the easier understanding of this.
Is that how to import the different models in our python coding?
We can import our model according to our requirement and also at the same time we can rename it that
can create the alias of the imported model.
So here import math model as M so next time, if I want to use this math name as a model M here instead
of that it will be using M God.
So print the value of pi is m dot by because we have done the renaming of it, we have done the alias
of this math as m so underbite will print the respective by value not use of from from math import byte.
So that is another way to import this by here.
So from math import byte.
So in this case there is no need to write math by here.
You can use directly this by here in our respective print statement.
So if I execute the code, we are getting the output like this one.
Next one is the input.
All names from the Standard Model met in the case.
We can go forward from math import star.
So all the aldosterone, all the names from the Standard Model math will get imported and later you
can use this spy for the printing.
That is a value of pi is by here.
So in this way, in this particular demonstration, we have shown you that how to import models and
how to choose from and how to use this renaming operation while importing our models.
Thanks for watching this video.