Section 7: Modules
7.1 Import, as, and from
Get introduced to the “import”, “from”, and “as” keywords.
· See a demo of importing the math module
· Take a look at the difference between importing and importing with from
· Know when to use the “as” keyword while importing something
Click Here to Download
7.2 Python API and Modules
Get introduced to the Python API and reading docs.
· Showcase the Python standard library modules on the Python.org website
· See a demo of how to import something from a Python standard module and use it
· Learn to copy a file using the shutil module
Click Here to Download
7.3 Creating Modules
Create your own modules.
· Walk the viewer through how to create a simple module to compute the volume of simple solids
· Import the new created module
· Have an example of how to use a function in the new module
Click Here to Download
7.4 Modules and Testing
Take advantage of the module structure to test code.
· Take a look at a demo of what if __name__ == ‘__main__’ is and why it is used
· See how to test code in a module using if __name__ == ‘__main__’
Click Here to Download
1 Comments
Very Informative. Thank you for sharing this article.
ReplyDeleteIf you want to know about best data science course and data science course with placement in Bangalore, Visit Learnbay.co website.