Complete the code to create an empty __init__.py file that makes a folder a package.
# Create an empty file named [1] in your folder
The file named __init__.py tells Python that the folder is a package.
Complete the code to import a module from a package using __init__.py.
from mypackage [1] mymodule
Use import to bring a module from a package into your code.
Fix the error in the __init__.py file to expose a function from a submodule.
# __init__.py from .submodule [1] my_function
Use import to expose my_function from the submodule in the package.
Fill both blanks to create a dictionary comprehension in __init__.py that maps module names to their lengths.
module_lengths = {name: len(name) for name in [1] if len(name) [2] 5}This comprehension creates a dictionary for module names longer than 5 characters.
Fill all three blanks to create a dictionary in __init__.py that maps uppercase module names to their lengths if length is less than 10.
module_info = [1]: [2] for [3] in ['modA', 'moduleB', 'modC'] if len([3]) < 10}
This dictionary comprehension maps uppercase module names to their lengths for names shorter than 10 characters.