Quiz on Python Import Function



1. What is the purpose of the import statement in Python?
2. Which keyword is used to import specific functions or variables from a module?
3. What does the 'import module_name' syntax do?
4. How would you import a module and give it a custom name?
5. What is the purpose of the __init__.py file in a package?

Advertisements