Table of Contents


1. General Introduction

1.1. The Way of the Program
1.2. Algorithms
1.3. The Python Programming Language
1.4. Executing Python in this Book
1.5. More About Programs
1.6. What is Debugging?
1.7. Syntax errors
1.8. Runtime Errors
1.9. Semantic Errors
1.10. Experimental Debugging
1.11. Formal and Natural Languages
1.12. A Typical First Program
1.14. Glossary

2. Simple Python Data

2.1. Variables, Expressions and Statements
2.2. Values and Data Types
2.3. Read More →

Problem Solving with Algorithms and Data Structures using Python

By Brad Miller and David Ranum, Luther College


1. Introduction

1.1. Objectives
1.2. Getting Started
1.3. What Is Computer Science?
1.4. What Is Programming?
1.5. Why Study Data Structures and Abstract Data Types?
1.6. Why Study Algorithms?
1.7. Review of Basic Python
1.8. Getting Started with Data

1.8.1. Built-in Atomic Data Types
1.8.2. Built-in Collection Data Types

1.9. Input Read More →
This book is a practical—and, we hope, entertaining—introduction to some of the most important algorithms and data structures in computer science.
We know that some software engineers think “practical algorithms” is an oxymoron 😞 so we’ve done our best to keep this book brief, useful and approachable.1 The code samples are in idiomatic Python, and the Read More →

pyfolio is a Python library for performance and risk analysis of financial portfolios developed by Quantopian Inc. It works well with the Zipline open source backtesting library.
At the core of pyfolio is a so-called tear sheet that consists of various individual plots that provide a comprehensive image of the performance of a trading algorithm. Here's Read More →

What is Streaming?
Streaming is a technique in which the server provides the response to a request in chunks. I can think of a couple of reasons why this might be useful:

Very large responses. Having to assemble a response in memory only to return it to the client can be inefficient for very large responses. An Read More →

Excel files can be read using the Python module Pandas. In this article we will read excel files using Pandas.
Related course:
Data Analysis in Python with Pandas
Read Excel column names
We import the pandas module, including ExcelFile. The method read_excel() reads the data into a Pandas Data Frame, where the first parameter is the filename and the Read More →

Python is strongly typed (i.e. types are enforced), dynamically, implicitly typed (i.e. you don't have to declare variables), case sensitive (i.e. var and VAR are two different variables) and object-oriented (i.e. everything is an object).
Getting help
Help in Python is always available right in the interpreter. If you want to know how an object works, all Read More →

What is Twisted?
Twisted is an event-driven networking engine written in Python and licensed under the open source ​MIT license. Twisted runs on Python 2 and an ever growing subset also works with Python 3.
Here's a simple publish/subscribe server, where clients see all messages posted by other clients:
You can test this out by opening two terminals Read More →

A failure detector is a key building block for fault-tolerant distributed system, which provide a mechanism to collect information of process failure.
The Heartbeat Model
The heartbeat model is used in most distributed systems. Every process p periodically sends an “I am alive” heartbeat message to the process q. The period is the heartbeat interval Δi.
If q Read More →