Search
- Filter Results
- Location
- Classification
- Include attachments
- https://eng.libretexts.org/Bookshelves/Computer_Science/Programming_Languages/Python_Programming_(OpenStax)/07%3A_Modules/7.01%3A_Module_BasicsThis page discusses the goals and techniques for defining and importing Python modules, highlighted with an “area” module example for geometric area calculations. It explains usage in other programs a...This page discusses the goals and techniques for defining and importing Python modules, highlighted with an “area” module example for geometric area calculations. It explains usage in other programs and offers exercises for creating a conversion module for temperature and distance. There's also a task to write a program that combines this conversion module with user input for output results.
- https://eng.libretexts.org/Bookshelves/Computer_Science/Programming_Languages/Python_Programming_(OpenStax)/07%3A_Modules/7.02%3A_Importing_NamesThis page discusses learning objectives for importing functions in Python using the "from" keyword, emphasizing direct imports and name collision risks. It provides checkpoints and practice questions ...This page discusses learning objectives for importing functions in Python using the "from" keyword, emphasizing direct imports and name collision risks. It provides checkpoints and practice questions to strengthen understanding. The importance of careful naming to avoid unexpected behavior due to name conflicts, which do not generate errors in Python, is also highlighted.
- https://eng.libretexts.org/Bookshelves/Computer_Science/Programming_Languages/Python_Programming_(OpenStax)/11%3A_Classes/11.05%3A_Using_Modules_with_ClassesThis page covers selective class imports from modules, creating aliases, and emphasizes module organization for reusability. Key concepts include using import statements, the advantages of aliasing to...This page covers selective class imports from modules, creating aliases, and emphasizes module organization for reusability. Key concepts include using import statements, the advantages of aliasing to avoid naming collisions, and practical exercises that reinforce these ideas through questions on module class counts, correct imports, and fixing missing statements.
- https://eng.libretexts.org/Bookshelves/Computer_Science/Programming_Languages/Python_Programming_(OpenStax)/16%3A_Answer_Key/16.06%3A_Chapter_7This page offers an overview of Python modules, covering fundamentals like importing, top-level code, and the use of the help function. It discusses defining functions within modules, the importance o...This page offers an overview of Python modules, covering fundamentals like importing, top-level code, and the use of the help function. It discusses defining functions within modules, the importance of the __name__ variable, and handling imports and name errors. Documentation organization, including docstrings, standard libraries such as tkinter and MoviePy, and hexadecimal color representation are also addressed.