PPMG - Python Progamming I & II


Duration: 5 days
Python is a powerful programming language for rapid application development. It features extensive standard libraries and third-party modules for virtually every task. Python can integrate with COM, .NET, CORBA and Java Objects. Python can be used in all major platforms, from mainframe, Servers, PCs to mobile phones.

This course teaches essential and advanced topics for Python language; such as pattern matching, data extraction, complex data structures, object-oriented features, unit testing, interfacing to SQL databases, web programming. Many examples are given in the training on using Python to extract data via pattern matching, compute reports using complex data structures, charting, using 3rd party modules such as reading and writing to spreadsheets, data mining from the web. The course is practical oriented, students are encouraged to bring their actual programming projects to be the final class projects. The instructor will guide the students to achieve their project targets.


By the end of the course, you will be able to write short Python programs that are able to accomplish real, practical tasks. This course is the foundation for building expertise in Python programming. As the first course in a specialization, it provides the necessary building blocks for you to succeed at learning to write more complex Python programs.


Python Introduction 

  • What is Python.
  • Obtaining and Installing Python Python 2 or Python 3.
  • Running Python.
  • Language Features.
  • Python Documentation.

Python Basics

  • Python Statements.
  • Comments.
  • Python Identifiers.
  • Reserved Keywords.
  • Encoding Declarations.
  • Program Output.
  • Python 3 Changes.
  • Program Input. Basic Operators.
  • Division and Type Conversion.
  • Modulo and Negation.
  • Augmented Assignment Basic.
  • Data Types.
  • Basic String Operators.
  • The Unicode Type.
  • Reading a Unicode File.
  • Basic Type Conversion.
  • Type Conversion.
  • Python 3 Changes to Basic Data Types.

Object Oriented Programming

  • Introduction to Object-Oriented Programming.
  • Definition of Class. Object Basics.
  • Object Methods.
  • Object Basics: Inheritance.
  • Overriding Methods.
  • Operator Overload.
  • Operator Overload Example.
  • Object Identity.
  • Determining The Class Type.

Conditionals and Loops

  • Python Conditionals.
  • Boolean Operations – and, or, not Comparisons. i
  • f statement.
  • More About if Statement.
  • while Loop.
  • while Loop with else.
  • for Loop.
  • break from loops.
  • continue Statement.
  • continue.
  • The pass Statement. 

Sequences: Lists and Tuples

  • List.
  • Python Lists versus C Arrays.
  • Lists Operators and Functions.
  • List Slice. Lists Object Methods.
  • List Methods.
  • Key Functions.
  • List Sort.
  • Multiple Key Sort.
  • The sorted Function.
  • Python 3 Sort Changes.
  • Tuples Basics.
  • Converting Between Lists and Tuples.
  • Program Examples of Using Lists and Tuples Tuple Example.
  • Copy A List.
  • Shallow Copy versus Deep Copy.
  • List Comprehension.


  • Compare Functions (Removed in Python3). 
  • Sort Using cmp.
  • List Sort.
  • Multiple Key Sort.


  • Dictionaries Basics.
  • Dictionaries Operations.
  • The in Operator.
  • Dictionary Methods.
  • Using Dictionaries.
  • Dictionary Examples.

The Set Container

  • Python Set.
  • Operator.
  • Add Method.
  • Intersection Method.
  • Union Method.

Files Handling

  • File Object.
  • File Class.
  • Reading from Text File.
  • Writing to Text File.
  • Writing to Text File (2).
  • Binary File.
  • Advanced File Operations:Posixpath Module.
  • os.stat() Function.
  • glob Module.
  • pickle Module.
  • Standard Out and Standard Error.
  • with Statement.


  • Exceptions.
  • Handling Exceptions.
  • Exception Example.
  • Multiple except Clause Exception Arguments.
  • Handling Exceptions in Called Functions.
  • Raising Exceptions.
  • User Defined Exceptions.
  • Defining Clean Up Actions.


  • Defining Functions.
  • Arguments with Default Values.
  • List Arguments.
  • Keyword List Argument.
  • Variable Scope.
  • Changing Value of Global Variable.
  • Global Variable.
  • Recursion.
  • lambda Functions.

Python Modules

  • Module Basics.
  • Namespace.
  • Importing into Current Namespace.
  • Module Search Path.
  • Compiled Python Files.
  • Packages

Regular Expression

  • Regular Expression.
  • Regular Expression in Python:sre module.
  • Single Character Patterns. Example of Single Character Pattern.
  • Single Character. 
  • Character Set. 
  • The [^..] Character Class.
  • The \ Escape Character. 
  • The | Operator. Anchors: Word and String Boundaries. 
  • The ^ anchor. 
  • The $ Anchor. 
  • Word Boundary. 
  • Pre-defined Classes. 
  • Quantifiers. 
  • The * Quantifier The + Quantifier.
  • The {n},{m,} and {m,n} Quantifiers. 
  • The (..) Expression. 
  • Regular Expression Methods. 
  • Text Search. Substitute. 
  • Substitute Examples. 
  • Substitution Examples: Grouping. 
  • Regular Expression Greediness. 
  • Extracting Matches. 
  • Practical Examples of Using RE Extract.

Graphical User Interface 

  • Graphical Programming in Python.
  • Tkinter.
  • Another tkinter Example.
  • Geometry Managers.
  • Pack() Geometry Manager.
  • Pack Geometry Manager Grid().
  • Geometry Manager Grid() Example.
  • Grid() Example (2).
  • Menu.
  • Menu Example.
  • Button Widget.
  • The Checkbutton widget.
  • Entry Widget.
  • Standard Dialog Boxes.
  • tkMessageBox Examples.
  • tkFileDialog.
  • Events and Binding.
  • Events.
  • Events Example.
  • Event Binding Example.

Documenting Your Code

  • Python’s Documentation Tools.
  • Docstrings Example The doc__ attribute.
  • The Built-In help() Function.
  • help() Function.


  • pdb – Interactive Debugger.
  • Starting pdb From The Command Line.
  • Starting pdb Within Your Program.
  • Starting pdb After A Failure.
  • Controlling The Debugger.
  • Breakpoints.

Python Unit Testing Framework 

  • What is Python Unit Testing.
  • PyUnit Concepts.
  • An Introduction To TestCases.
  • Creating a Simple Test Case.
  • Test Fixtures.
  • Test Fixtures Example.
  • TestCase Classes with Several Test Method.
  • TestCase Classes with Several Test Method – Example.
  • Test Suites. MakeSuite.
  • Running Tests Interactively.
  • Running Tests Using the main() Method.

Python Web Development

  • Python Web Development Web.
  • Server A1nd CGI.
  • Web Server ConfigurA1tions for CGI.
  • A Simple CGI ProgrA1m.
  • Web Form. Input Tags.
  • Submit Buttons.
  • CGI Script.
  • cgi Module.
  • Input Fields with Same Name. 
  • Apache/Python Integration. 
  • WSGI - Web Server Gateway Interface. 
  • Web Frameworks for Python. 
  • Python Web Frameworks. 
  • Web Client Programming. 
  • URLLIB2 – Extensible Library for Opening URLs ClientForm Python. 
  • Mechanize Selenium. 
  • Appendix 2 – Python Database API. 
  • Database Interfaces and APIs. 
  • Python DB-API. 
  • Python DB-API. 
  • DB-API Using MySQL as An Example. 
  • Database Connection. 
  • Creating Database Table. 
  • Insert Database Record. 
  • Insert Many Database Records. 
  • Retrieve Database Records.


Semiconductor IC Designers, Research Scientist, R&D scientists and Engineers, Network Engineers, Systems Administrators, Communications Engineers, Software Developers, Web Developers, IC Test/Product Engineers, and Financial Technical analysts and those who interested to learn Python Programming.




Trainocate Certificate of Attendance


Show Schedule for: