In course, you will learn the basics of programming with Python. You will learn about expressions, variables, conditionals, loops, lists, sets, dicts, functions, objects, and exceptions.
Upon completion of this course, you will be able to:
Store and manipulate user-input data using Python.
Implement basic Python decisions, iteration, sequence containers, sets, and dicts.
Read and write files using Python.
Define custom functions and call built-in Python functions.
Import modules and namespaces from the Python Standard Library.
Define classes and instantiate objects using Python’s Class mechanism.
Handle exceptions and document code.
Build and debug an entire program written in Python.
From beginning to end, you will learn by doing Python-based projects and submitting them for instructor feedback. These projects, as well as the final project, will add to your portfolio and will contribute to certificate completion. Besides a browser and Internet connection, all software is provided online by the O’Reilly School of Technology.
This course is completely self-paced. You can expect to work approximately 90 hours on this course.
As long as you have a web browser and internet connection, you can take this course from anywhere in the world.
6 Continuing Education Units with official letter from O’Reilly Media.
The CodeRunner Learning Sandbox® provided for you will contain all your lessons, projects, quizzes, account files, editors, and compiling tools necessary to build your skills from beginning to end, even beyond coursework. No other software is needed.
You will have one instructor throughout the course who will evaluate your projects and quizzes, hand them back for improvement when necessary, and coach you throughout your skills advancement.
All required course materials and software are included online within the Learning Sandbox®. However, within a few weeks of enrolling, you’ll receive the e-book Python Pocket Reference, Fourth Edition as a reference resource from O’Reilly.
Prerequisites: Experience using a web browser and email. This course is meant for the beginning or intermediate student.
Data Types, Namespaces, Conditional Statements, Sequence Containers, Sets, Dicts, String Formatting, Loops, Reading and Writing Files, Functions, The Python Standard Library, Classes, Objects, Methods, etc.
Python 1 Lab 1 — Getting Started
Writing Your First Program
Data In Python
Python 1 Lab 2 — Entering and Storing Data
Binding Values to Names
More Python Syntax Basics
Reading and Converting User Input
Calculating with Stored Values
Python 1 Lab 3 — Making Decisions: The if Statement
Conditions in Python
Making Decisions: Simple if Statements
Choosing Between Alternatives: the else Clause
Multiple Choice Decisions
Combining Conditions: ‘and’ and ‘or’
Testing For a Range of Values: Chaining Comparisons
Python 1 Lab 4 — Iteration: For and While Loops
A Simple For Loop
Breaking Out of a Loop
Terminating the Current Iteration
Python 1 Lab 5 — Sequence Containers: Lists and Tuples
Writing Lists and Tuples
Accessing Sequence Values
Slices With a Stride: Skipping Around Sequences
Some Other Functions and Methods to Work with Sequences
Testing for Presence in a Sequence
Manipulating Lists and Tuples
Python 1 Lab 6 — Sets and Dicts
Working With Sets
Working with Dicts
Applying Dicts: Counting Words
A More Complex Application: Word Pair Frequencies
Python 1 Lab 7 — String Formatting
The format() Method
Format Field Names
Python 1 Lab 8 — More About Looping
Fun with the range() function
Using the enumerate function
While Loops and User Input Validation.
Dicts and loops
Python 1 Lab 9 — Reading and Writing Files
Creating a New File
Writing to a File
Reading Files as Text
Appending to a File
Seeking to Arbitrary Positions
Python 1 Lab 10 — Python’s Built-In Functions
Python 1 Lab 11 — Defining and Calling Your Own Functions
Parameters and arguments
Multiple return values
Functions and Namespaces
Python 1 Lab 12 — The Python Standard Library
The System Path
Python 1 Lab 13 — More about functions
Arbitrary Keyword Parameters
Parameters, Sequence-parameters and Dict-parameters
Importing Functions and help()
Python 1 Lab 14 — Classes and Object-Oriented Programming
The Nature of Objects
Defining Your Own Object Classes
Class and Instance Namespaces
Defining Object Behavior
Defining Behavior as Methods
Python Deep Magic: Hooking Into Python’s Class Mechanism
Python 1 Lab 15 — Exception Handling
How to Catch an Exception
Verifying Numeric Input
Handling Multiple Exception Types
Handling Multiple Exceptions with One Handler
Specific and Generic exceptions
When and When Not to Use Exceptions
Python 1 Lab 16 — Building and Debugging Whole Programs