Biton, different models.
So let us discuss on it.
A Python model is simply a python source fine, which can expose classis functions and global vegetables.
And when imported from another python source find the file name is treated as a namespace.
So a python package is simply a directory of python modules.
So, so many models are different.
So many libraries are defined in Python.
So that's why this bite on is so powerful that was there nothing.
But these models are nothing but poorly written python source calls.
We can import them in our current model, as you indicate, to use those functions classes as Wendie
Grid so that we 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 the example who can go for, say, import nonpaying?
Also, we can use some alias that is import num by as NDB.
So next time point to where we're supposed to access any component from this number.
So you can go for this non-pay dot or you can go for this ENPI dot in this way.
We can also access it.
So let us go for one practical demonstration, for the easier understanding of this is how to import
the different models in our Python code.
We can import our model according to our very common and also at the same time we can rename it.
That means we can create the alias of the imported model.
So he had import mat model as M.
So next time, if I want to use this math name as a model limb here in setup that will be using M dot.
So print the value of pi is m dark 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 bivalve, not use off
from from math import byte.
So that is another way to import this by here.
So from math import pi.
So in this case there is no need to write math dark by here.
You can use Deadly this spy here in our respective print segment.
So if I execute the code are getting the output it like this one.
Next one is input.
All names from the Standard Model met.
In that case, we can go far from math import star.
So all the all the, all the names from the standard model math will get imported.
I literally can use this spy for the printing.
That is a value of pi is by here.
So industry in this particular demonstration we have shown you that how to input models and how to choose
from and how to use this renaming operation while importing our models.
Thanks for watching this video.