INTRODUCTION FOR PYTHON: A CRASH COURSE
This is a crash course in Python for beginners and intermediate coders.
In this live, instructor-led Python training course, participants learn to program in Python. The course is aimed at participants new to the language and who may, or may not, have experience with other programming languages. Participants 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.
This course covers Python 3.
The training will be concluded with a game app created using the pygame module.
COURSE OBJECTIVES
At the completion of the training, candidates will be able to:
- work with Variables and Simple Data Types
- work with Lists
- utilize if Statements
- work with Dictionaries
- create User Input and while Loops
- create Functions
- create Classes
- work with Files and Exceptions
- Test codes
PRE-REQUISITE
Participants with prior programming knowledge will be an added advantage
DURATION
2 Days
COURSE CONTENT
Getting Started
- Setting Up Your Programming Environment
- Python on Different Operating Systems
- Troubleshooting Installation Issues
- Running Python Programs from a Terminal
Variables and Simple Data Types
- Variables
- Strings
- Numbers
- The Zen of Python
Introducing Lists
- What Is a List?
- Changing, Adding, and Removing Elements
- Organizing a List
- Avoiding Index Errors When Working with Lists
Working with Lists
- Looping Through an Entire List
- Avoiding Indentation Errors
- Working with Part of a List
- Tuples
- Styling Your Code
If Statements
- Conditional Tests
- if Statements
- Using if Statements with Lists
- Styling Your if Statements
Dictionaries
- Working with Dictionaries
- Looping Through a Dictionary
- Nesting
User Input and while Loops
- How the input() Function Works
- Introducing while Loops
- Using a while Loop with Lists and Dictionaries
Functions
- Defining a Function
- Return Values
- Passing a
- Passing an Arbitrary Number of Arguments
- Storing Your Functions in Modules
- Styling Functions
Classes
- Creating and Using a Class
- Working with Classes and Instances
- Inheritance
- Importing Classes
- Importing a Single Class
- The Python Standard Library
Files and Exceptions
- Reading from a File
- Writing to a File
- Exceptions
- Storing Data
Testing Your Code
- Testing a Function
- Testing a Class
Project
- Creating GUI apps using tkinter