Course Description
This Python Programming Essentials online training course teaches you the basics of Python, a powerful programming language used to solve many different types of problems. In this course you will start by learning the basics of Python and by the end of the course you will be able to write Python programs to processes, text, work with complex data types, handle exceptions, and begin designing object-oriented programs.
Python is a general purpose language that was released in the 1990’s. It is designed to be highly readable and that makes it very easy for beginners. Even though the learning curve is shorter than many other languages, it allows you to do scientific computing, web development and 3d rendering. Python had a major role in starting YouTube, Instagram and Reddit. Because Python is useful in many different applications there are jobs available in just about every market. Companies like Google and YouTube have requirements for Python Programmers most all the time.
This course was designed using Python Version 2 and includes exercises using Python Version 2 and Python Version 3. Python version 3 is now the preferred version of Python. All example Python programs provided in the class are shown in Version 2 and Version 3.
Once you have completed Python Programming Essentials the next course in this series is Advanced Python Programming. The Advanced Python Programming course will enhance your Python knowledge by discussing complex data types, object oriented programming, GUI programs, regular expressions, threads, network programming, using SQL, and extending Python with C. Click here to learn more about Advanced Python Programming.
In This Course You Will Learn:
- Describe the basic structure of the Python language including Python's data types and control flow constructs
- Write, debug, and execute Python programs
- Describe and work with nested data types
- Describe and work with exception handling
- Understand the basics of modules and object oriented programming in Python
- Use Python to work with files and the operating system
Prerequisites
You need to have experience in a high-level programming language (for example: C, C++, Java, Perl, etc.) and be able to perform basic operations in the operating systems. If you do not have this experience, we recommend you select from the following GogoTraining courses:
Outline
Module 00: Learn Python Programming - Course Introduction
Module 01: Introduction to Python
- Python Websites and Books
- A Little History
- Interactive Python and Python Programs
- Lab: Intro to Python
- Demo: Programs, Variables, Syntax
Module 02: Numbers Part 1
- Numeric Literals, Variables and Operators
- Reading from Standard Input
- Demo: Standard Input, if statement, while statement
Module 03: Numbers Part 2
- if and while statements
- Logical Operators
- Lab: Numbers, if and while
Module 04: Strings
- String Literals, Variables and Operators
- Strings as Sequences and Slicing
- String Formatting
- String Methods
- Lab: Strings
Module 05: Lists
- Lists Defined
- Creating, Indexing, Slicing Lists
- Looping through Lists
- List Operators
- Lab: Lists
- Demo: Looping
Module 06: List Methods
- Creating Lists with split()
- Joining Lists with join()
- List Methods including append(), count() and pop()
- Lab: Using List Methods
- Demo: Using Lists
Module 07: Control Flow Constructs Part 1
- if, if/else
- while Loop
- break and continue
- Lab: More on if and while
Module 08: Control Flow Constructs Part 2
- for Statements
- The Range Method
- for Loop
- List Comprehensions
- Lab: Using Looping Constructs
- Demo: Various statements
Module 09: Tuples
- Tuples Defined
- Creating, Indexing, Slicing Tuples
- Tuple Comprehensions
- Tuple Operators
- Lab: Working with Tuples
- Demo: Creating Tuples
Module 10: Dictionaries
- Dictionaries Defined
- Creating and Indexing Dictionaries
- Processing Dictionaries
- Demo: Creating Dictionaries
Module 11: Dictionary Methods
- Keys Method
- Value Method
- Creating Dictionaries as a Flexible List
- Lab: Working with Dictionaries
- Demo: Working with Dictionaries
Module 12: The File Type Part 1
- The File Type Defined
- Opening and Closing Files
- Reading From and Writing to Files
- Demo: File Parts
Module 13: The File Type Part 2
- File iIterators
- sys.stdin
- Files and List Comprehensions
- Lab: File Type
- Demo: Working with Files
Module 14: Functions Part 1
- Functions Definition and Invocation
- Return Values and Function Arguments
- Arguments Passed by Reference
- Demo: Values and Arguments
Module 15: Functions Part 2
- Default Arguments
- Calling Functions with Keywords
- Global Variables with Global
- Lab: Writing Functions
- Demo: Variables
Module 16: Complex Data Types Part 1
- Introduction to the Basic Complex Data Types
- List of Lists
- Processing a List of Lists
- Lab: Working with a List of Lists
- Demo: Lists of Lists
Module 17: Complex Data Types Part 2
- Dictionary of Dictionaries
- Processing a Dictionary of Dictionaries
- Arbitrarily Nested Data Types
- Lab: Working with a Dictionary of Dictionaries
- Demo: Dictionary of Dictionaries
Module 18: Introduction to Modules
- Modules Defined
- Standard Library
- Location of Library Files
- The from Statement
- Lab: Creating and Using a Module
- Demo: Modules and Libraries
Module 19: Introduction to Object Oriented Python
- Object Oriented Programming Defined
- Creating a Class
- Constructors
- Lab: Creating and Using a Class
- Demo: Classes
Module 20: Object Oriented: Inheritance
- Introduction to inheritance
- A Derived Class Constructor
- Using a Derived Class
- Brief Discussion of Advanced Topics
- Lab: Implementing Inheritance
- Demo:Inheritance
Module 21: Introduction to Exception Handling
- Built-in exceptions
- Handling exceptions with the try / except statement
- Handling KEY ERROR exceptions
- Lab: An Exceptional Lab
- Demo:Exceptions and Statements
Module 22: Using the sys Module
- Command Line Arguments
- Exiting the Program
- Various sys Properties
- Demo: Command lines and Exiting
Module 23: Using the os Module Part 1
- Environment Variables
- Changing Directories, File Permissions
- Making and Removing Directories
- Deleting Files
- Demo: Environment and the os
Module 24: Using the os Module Part 2
- Executing External Programs
- Opening Pipes
- Advanced Topics
- Lab: Using the sys and os Modules
- Demo: Pipes and Executing External Programs
Module 25: Moving from Python 2 to Python 3
- Common gotchas
- Syntax changes
- String formatting
- Changes to exceptions
- Miscellaneous stuff
- Porting from Python 2.x to Python 3.x