Table of Contents

Assignments

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.13. Comments
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

Assignments

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 →

https://bradfieldcs.com/algos/
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 →

Properties
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 →

Make a fully operational REST API in PHP

Routing a JSON REST request
Converting it into SQL
Executing it
Giving a meaningful response

Running
Save this file as “api.php” in your (Apache) document root and call it using:
Or you can use the PHP built-in webserver from the command line using:
The URL when ran in from the command line is:
NB: Don’t forget Read More →

Ruby is...
A dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write.
Learn to Program with Ruby - https://pine.fm/LearnToProgram/chap_00.html
« the original tutorial »

Getting Started
Numbers
Letters
Variables and Assignment
Mixing It Up
More About Methods
Flow Control
Arrays and Iterators
Writing Your Own Methods
Classes
Blocks and Procs
Beyond This Tutorial

 

It's not all that hard to implement a finite-state machine, unless it's very large, and you have to worry about multithreading, and ...

A common design technique in the repertoire of most programmers is the venerable state machine. Designers use this programming construct to break complex problems into manageable states and state transitions. There are innumerable Read More →

Simple Sorting Challenge
Challenge Description:
Write a program which sorts numbers.
Input sample:
Your program should accept as its first argument a path to a filename. Input example is the following

70.920 -38.797 14.354 99.323 90.374 7.581
-37.507 -3.263 40.079 27.999 65.213 -55.552

Output sample:
Print sorted numbers in the following way. Please note, that you need to print the numbers till Read More →