Python Programming Essentials

Course code: PLAL01

Duration: 25 Hours

Audience

Python is an interpreted, general purpose, high-level programming language. It is one of the widely used programming language today, and is at top five position. It is easy to code and lets programmers to express concepts in fewer lines of code. It is used in programming both in small and large scales. It supports object-oriented, procedural, functional and imperative programming paradigms. Python has a comprehensive library of functions. These features enables Python as a popular language to process data. It is also widely used in building Machine Learning, Data Science and Artificial Intelligence applications.

Python Programming Essentials course is your first step into learning this popular programming language and its applications. It provides the knowledge on installing the development environment, data structures, structured programming techniques, object-orientation, database processing and other relevant features of programming.

Prerequisites

Basic knowledge of computers

Objective

By attending this course you are expected to obtain following skills:

- Install development environment

- Data types, variables & operators

- Data structures

- Control statements

- Functions

- Modules

- File handling and OS interactions

- Exception handling

- Applying OOP Concepts

- Database processing

Education Criteria

None

Course Overview

  • Course outline
  • Course objectives
  • An overview of exercises and case study

Introduction To Python Fundamentals

  • History of python
  • What is Python
  • Python Installation
  • Python Interpreter
  • Running first hello world program
  • Exercises

Data Types, Variables and Operators

  • Numbers
  • Strings
  • Variable declaration
  • Arithmetic Operators
  • Assignment Operators
  • Comparison Operators
  • Logical (or Relational) Operators
  • Conditional (or ternary) Operators
  • Exercises

Conditional statements Or Control Structures

  • if Statements
  • while construct
  • for Statements
  • Looping Techniques over arrays, dictionary, etc.
  • The range() Function
  • Break and continue
  • Statements, and else
  • Clauses on Loops
  • Pass Statements
  • Error Handling
  • Exercises

Basic Data Structures

  • Arrays
  • Lists
  • Tuples
  • Operations on data structures
  • Exercises

Functions

  • Local variables
  • Default Argument Values
  • Returning Values
  • Keyword & Positional
  • Arguments
  • Arbitrary Argument Lists
  • Documentation Strings
  • Exercises

Modules

  • Executing modules as scripts
  • The Module Search Path
  • Building modules
  • Running a module from the command line
  • 'Compiled' Python files
  • Standard Modules
  • The dir() Function
  • Packages
  • Importing * From a Package
  • Exercises

File handling and other OS interactions

  • Opening a File
  • Reading from a file, writing to a file
  • Closing a File
  • Exercises

Handling Exceptions

  • try-except
  • else clause
  • finally clause
  • Exercises

Regular expressions

  • What is regular expression?
  • Matching characters
  • Meta characters like quantifiers, anchors, character classes, alternator, etc.
  • Compiling regular expressions
  • Exercises

Introduction to OOP

  • Class Definition Syntax
  • Class Objects, Instance
  • Objects, Method Objects; Instantiation
  • Inheritance
  • Data Member – Class variable / Instance Variable
  • Exercises

Database

  • Python interaction with RDBMS
  • Introduction to SQlite3
  • Python and SQLite3
  • Exercises

Project Work