Home      Signup      Courses      Sign-In
 

  Please login to Enroll or Access the course.  
  Summary Page: Python: Classes and Modules

Python: Classes and Modules






Python is a lot more than a scripting language, and can be used to create OOP applications using classes, or using a functional paradigm. This course covers some of the ways Python programs can execute. You'll learn about building your own custom functions and classes, and documentation and file handling.


Beginner Python developers, and developers with experience in other languages looking to start programming in Python


2.92

Modules and Functions

  • create and import a module at the Python REPL
  • define a function in Python
  • describe the difference in operation between Python scripts, programs and modules
  • run a module as a script using the __name__ == __main__ syntax in Python
  • create a main function that takes command line arguments in Python
  • Classes

  • describe the relationship between classes and types in Python
  • create a class definition and describe the structure in Python
  • write a class initializer method in Python
  • write and use class instance methods in Python
  • write and use static methods in Python
  • use inheritance and describe the semantics in Python
  • describe class properties in Python
  • describe how inheritance affects properties in Python
  • write a class that implements operator overloading in Python
  • Documenting Code

  • write docstrings in Python
  • write comments in Python
  • describe best practice for documenting Python code as set out in PEP 8
  • Files

  • read text files in Python
  • write data in Python
  • write large files in Python
  • read binary data in Python
  • write binary data in Python

  • pg_pyth_a02_it_enus

     

     
    Home      Signup      Courses      Sign-In
     

      UN Global Alliance for ICT and Development ESKILLS360 IS A UN GAID FLAGSHIP INITIATIVE