Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
Define what a module is.
Think of single Python files you’ve created.
What file must a directory have to be recognized as a package?
Recall the filename that indicates it's a package.
What defines a Python package?
Think about how Python recognizes packages.
True or False: A module can contain another module.
Consider the structure of files in your code.
You are tasked with creating a Python package named 'weather_tools' that will include modules for processing and analyzing weather data. Describe the directory structure and include explanations for each part.
Think about how to group relevant functionalities in modules and what auxiliary files are necessary.
Suppose you are maintaining a package and want to ensure users only have access to specific functions. How would you set that up in the init.py file?
Consider how visibility in coding could work; what might you expose to users?
5 more questions in this section. Enroll free to practise them all.
Enroll free