Training Courses

search courses

55284: Introduction to Python

Guaranteed to Run Scheduled Fully Booked
Location
Wellington
Auckland
Jul 2021
5
5
Sep 2021
27
Code: 55284
Length: 4 Days
Overview

The course is aimed at students new to the Python language who may or may not have experience with other programming languages.

Delivery format(s)
On-Site
On-Site
Classroom
Classroom
Anywhere
Anywhere
OBJECTIVES
If you are brand new to programming, Python is a great place to start. It is relatively simple to learn the basics, so you will be writing Python programs quickly and by the end of this Python class, you will have skills that you will be able to put to use quickly.

If you have experience with other programming languages, such as Java, JavaScript, or C++, you will find much that is similar in Python, but you will also find some differences that will seem strange to you at first. We expect that you will find it relatively easy to adjust to and eventually appreciate Python's differences.

This Python course is taught using Python 3; however, differences between Python 2 and Python 3 are noted.

PREREQUISITES

Experience in the following would be useful for this Python class:

  • Some programming experience.
WHAT YOU’LL LEARN
  1. Learn how Python works and what it's good for.
  2. Understand Python's place in the world of programming languages.
  3. Learn to work with and manipulate strings in Python.
  4. Learn to perform math operations with Python.
  5. Learn to work with Python sequences: lists, arrays, dictionaries, and sets.
  6. Learn to collect user input and output results.
  7. Learn flow control processing in Python.
  8. Learn to write to and read from files using Python.
  9. Learn to write functions in Python.
  10. Learn to handle exceptions in Python.
  11. Learn to work with dates and times in Python.
COURSE OUTLINE

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

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

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

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

Sequences, Dictionaries, and Sets
• Definitions
• Sequences
• Unpacking Sequences
• Dictionaries
• The len() Function
• Sets
• *args and **kwargs

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

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

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

Dates and Times
• Understanding Time
• The time Module
• The datetime Module

Running Python Scripts from the Command Line
• The sys Module
• sys.argv

Enquiry Form