← BYTES
Python·Starter·Ref: 6.1.15

What is the purpose of the `import` statement?

Have a question about this video? Mention reference 6.1.15 when you contact us.

a.To make the code (functions, classes, variables) defined in another module available in the current file
b.To create a new variable
c.To delete a module from the system
d.To compile Python to machine code
`import module_name` loads that module and makes its defined names accessible (usually via `module_name.something`), the standard way to reuse code across files and use the standard library/third-party packages.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES6115#Python