WEBVTT 00:01.610 --> 00:07.970 We can use a special named variable in module to check whether a file has been imported as a module 00:07.970 --> 00:08.440 or not. 00:09.560 --> 00:17.470 We can see this by a simple example by creating a module and save the brand. 00:18.650 --> 00:18.800 Hello 00:22.880 --> 00:23.010 there. 00:23.100 --> 00:24.420 This file as Module 1 00:33.220 --> 00:39.310 now create another module and just say import more than 1 00:43.720 --> 00:46.800 there is a save it as a module to 00:52.680 --> 01:12.660 now when we execute these modules both will print Hello. 01:13.270 --> 01:17.710 Now we'll see if name 01:20.390 --> 01:27.540 equal mean Brent. 01:29.590 --> 01:34.640 Fellow. 01:35.990 --> 01:36.370 Brent 01:39.930 --> 01:45.040 it from another module. 01:49.540 --> 01:56.200 Now as I told you that the name variable used is used to check whether the module is being executed 01:56.200 --> 01:58.980 as a standalone or being imported. 02:00.310 --> 02:10.800 So when I let the good Module 1 as it is a standalone blueprint hello and when I will execute module 02:10.950 --> 02:18.720 2 it will print imported from another module right. 02:19.200 --> 02:21.930 Hello module 02:27.500 --> 02:32.860 we can use this behavior to make the module set in a different way. 02:34.580 --> 02:40.100 Depending on whether it is being used by itself or being imported from another module.