Python Programming: Introduction

Schedule

Start End Duration Location Details

Course Details

Python Programming: Introduction

Duration: 5 days

Prerequisites:

This course is specially designed for individuals with prior programming background. Also it assumes a working knowledge of Object Oriented Programming concepts. If you have no prior programming experience or or not familiar with Object Oriented Programming, you should consider our "Python Programming - Basics for Non-Programmers" course.

Course Description:

In this Python training course, students learn to program in Python. The course is aimed at students new to the language and who may, or may not, have experience with other programming languages. Students will learn: how Python works and its place in the world of programming languages; to work with and manipulate strings; to perform math operations; to work with Python sequences; to collect user input and output results; flow control processing; to write to, and read from, files; to write functions; to handle exception; and work with dates and times. This Python course is taught using Python 3; however, differences between Python 2 and Python 3 are noted.

Intended Audience:

Students new to the language who have experience with other programming languages.

Course Outline:

1. Python Basics
Running Python
Hello, World!
Literals
Python Comments
Data Types
Variables
Writing a Python Module
print() Function
Named Arguments
Collecting User Input
Getting Help

2. Functions and Modules
Defining Functions
Variable Scope
Global Variables
Function Parameters
Returning Values
Importing Modules

3. Math
Arithmetic Operators
Modulus and Floor Division
Assignment Operators
Built-in Math Functions
The math Module
The random Module
Seeding

4. Python Strings
Quotation Marks and Special Characters
String Indexing
Slicing Strings
Concatenation and Repetition
Common String Methods
String Formatting
Built-in String Functions

5. Iterables: Sequences, Dictionaries, and Sets
Definitions
Sequences
Unpacking Sequences
Dictionaries
The len() Function
Sets
*args and **kwargs

6. Flow Control
Conditional Statements
The is and is not Operators
Python's Ternary Operator
Loops in Python
The enumerate() Function
Generators
List Comprehensions

7. File Processing
Opening Files
The os and os.path Modules

8. Exception Handling
Wildcard except Clauses
Getting Information on Exceptions
The else Clause
The finally Clause
Using Exceptions for Flow Control
Exception Hierarchy

9. Dates and Times
Understanding Time
The time Module
The datetime Module

10. Running Python Scripts from the Comand Line
The sys Module
sys.argv