Python Programming
 
 
 
General Tips & Tricks
 
memory
memory
memory

Memory for Random Generation Scripts

Python scripts can be used to create many things – shoes and ships and sealing wax, cabbages and kings – and to do many things – to make the sea boiling hot, and give pigs some wings. You will perhaps want to ...
 
Python Programming
 
563px-Markovkate_01
563px-Markovkate_01
563px-Markovkate_01

Python Script for Markov Chains

Consider the following problem in order to understand why we would need to create a Python Script for Markov Chains: A certain attire-fickle girl changes her outfit every hour. Her opinion for what outfit she should wear is alw...

 
Python Programming
 
alg2_ineq
alg2_ineq
alg2_ineq

Graphing Linear Inequalities with Python

Here is a practical example of the matplotlib.pyplot module in use. This code generates a list of linear inequalities, prints them in numbered groups (such as if you were to be creating worksheets for students), and then displa...
 
Python Programming
 
Go_board
Go_board
Go_board

Read, Set, Go! How to Create a GO Board Game in Python

The board game of Go is so expressly Japanese – elegant, yet simple, yet layered with depths of genius for those who meditate upon it. The rules are simple, and well documented here. Here is an example of a python program...
 
Python Programming
 
qml-tic-tac-toe-example
qml-tic-tac-toe-example
qml-tic-tac-toe-example

Code A Learn By Mistake Artificial Intelligence Opponent in Python For a Tic Tac Toe Game

I was going to write about how to get SkyNet up and operational, but then I decided that I would like the human race to continue. So, instead, I thought I would introduce a very simple strategy AI that can learn how to play any...

 
Python Programming
 
regex
regex
regex

How to Use Regular Expressions in Python

Today we talk about regular expressions in Python. “Up the creek without a paddle.” “Don’t throw the baby out with the bathwater.” “Apple of my eye.” “Can’t swing a cat with...