1 00:00:00,490 --> 00:00:02,250 Biton, different models. 2 00:00:02,400 --> 00:00:03,780 So let us discuss on it. 3 00:00:05,160 --> 00:00:12,870 A Python model is simply a python source fine, which can expose classis functions and global vegetables. 4 00:00:13,230 --> 00:00:20,040 And when imported from another python source find the file name is treated as a namespace. 5 00:00:20,730 --> 00:00:25,770 So a python package is simply a directory of python modules. 6 00:00:25,780 --> 00:00:27,330 So, so many models are different. 7 00:00:27,600 --> 00:00:29,610 So many libraries are defined in Python. 8 00:00:29,790 --> 00:00:33,090 So that's why this bite on is so powerful that was there nothing. 9 00:00:33,150 --> 00:00:36,910 But these models are nothing but poorly written python source calls. 10 00:00:37,170 --> 00:00:43,280 We can import them in our current model, as you indicate, to use those functions classes as Wendie 11 00:00:43,300 --> 00:00:47,250 Grid so that we need not to rewrite the code once again. 12 00:00:47,460 --> 00:00:54,540 So this model importing is actually enhancing the property known as reusability of the programming code 13 00:00:55,080 --> 00:00:57,990 as the example who can go for, say, import nonpaying? 14 00:00:58,590 --> 00:01:02,760 Also, we can use some alias that is import num by as NDB. 15 00:01:03,210 --> 00:01:06,820 So next time point to where we're supposed to access any component from this number. 16 00:01:07,380 --> 00:01:11,730 So you can go for this non-pay dot or you can go for this ENPI dot in this way. 17 00:01:11,970 --> 00:01:13,080 We can also access it. 18 00:01:13,440 --> 00:01:20,750 So let us go for one practical demonstration, for the easier understanding of this is how to import 19 00:01:20,750 --> 00:01:23,490 the different models in our Python code. 20 00:01:24,150 --> 00:01:30,360 We can import our model according to our very common and also at the same time we can rename it. 21 00:01:31,200 --> 00:01:34,710 That means we can create the alias of the imported model. 22 00:01:35,910 --> 00:01:39,350 So he had import mat model as M. 23 00:01:39,660 --> 00:01:46,250 So next time, if I want to use this math name as a model limb here in setup that will be using M dot. 24 00:01:46,770 --> 00:01:51,990 So print the value of pi is m dark by because we have done the renaming of it. 25 00:01:52,050 --> 00:01:59,670 We have done the alias of this math as m so underbite will print the respective bivalve, not use off 26 00:01:59,670 --> 00:02:02,310 from from math import byte. 27 00:02:02,310 --> 00:02:04,740 So that is another way to import this by here. 28 00:02:05,100 --> 00:02:07,100 So from math import pi. 29 00:02:07,350 --> 00:02:10,890 So in this case there is no need to write math dark by here. 30 00:02:10,890 --> 00:02:15,380 You can use Deadly this spy here in our respective print segment. 31 00:02:15,630 --> 00:02:19,500 So if I execute the code are getting the output it like this one. 32 00:02:19,830 --> 00:02:20,880 Next one is input. 33 00:02:20,940 --> 00:02:23,370 All names from the Standard Model met. 34 00:02:23,640 --> 00:02:27,140 In that case, we can go far from math import star. 35 00:02:27,600 --> 00:02:32,370 So all the all the, all the names from the standard model math will get imported. 36 00:02:32,800 --> 00:02:35,660 I literally can use this spy for the printing. 37 00:02:35,670 --> 00:02:37,920 That is a value of pi is by here. 38 00:02:38,370 --> 00:02:44,160 So industry in this particular demonstration we have shown you that how to input models and how to choose 39 00:02:44,160 --> 00:02:50,970 from and how to use this renaming operation while importing our models. 40 00:02:51,450 --> 00:02:52,650 Thanks for watching this video.