Python Training Outline
Python Training Outline
Duration: 32 Hours
Pre-Requisite:
• This course is for people who have worked on any operating system and an editor. The
learner should have explored programming concepts & would like to program using the
Python Scripting language.
Lab-Setup:
OPERATING SYSTEM: Windows 7/10 or Any Flavors of UNIX (Linux, HP-UX, Ubuntu, Solaris or
MAC OS). PYTHON Supports Multiplatform.
SOFTWARES:
NOTE: In Flavors of UNIX, Python v2 will be installed by default and the packages will be installed
during the training session.
c) MySQL Database (If any other database is being used, this should be informed prior to the
training)
Course Content
Collections
❖ Lists – Definition, Operations and Comprehension
❖ Tuples – Definition and Operations
❖ Dictionary – Definition, Operations and Comprehension
❖ Sets – Definitions and Operations
❖ Membership and Identity Operators
❖ Enumerations
Functions
❖ Defining the Function
❖ Function without Arguments
❖ Function with Fixed number of arguments
❖ Function with keyword arguments
❖ Function with Default arguments
❖ Function with variable length arguments
❖ Returning single/multiple values from the function
❖ Lambda Expressions
❖ Map, Filter and Reduce Functions
❖ Globals and Locals
File I/O
❖ Creating the File
❖ Writing the contents to the file
❖ Using ‘writelines()’ method
❖ Explicit reading with read(), readline() and readlines()
❖ Reading Binary Files
❖ Use of ‘with’ statement
Regular Expressions
❖ The ‘re’ module
❖ Patterns
❖ Anchors
❖ Range of Characters
❖ Quantifiers
❖ Metacharacters
❖ Character Class Escape Range Sequences
❖ Alternatives
❖ Choices
❖ Groupings
❖ Greedy Matches
Methods – search, match, findall, sub, split and compile
Exception Handling
❖ Standard Exception Hierarchy
❖ Handling the Exceptions
❖ Generic Exceptions
❖ Handling Multiple Exceptions
❖ User Defined Exceptions
❖ Raise and Assertions
CSV Modules
❖ CSV Format
❖ Creating the CSV Files
❖ Writing the contents into the CSV Files
❖ Reading the CSV File
❖ Reading the Contents of CSV File using DictReader
❖ Writing the Contents of CSV File using DictWriter
❖ Other Delimiters instead of ‘,’
Multithreaded Programming
❖ Why use threads?
❖ Threads are different
❖ Variables are shared
❖ Python threads modules