Posts Tagged ‘python’
 
 
 
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
 
free-the-files-470x340
free-the-files-470x340
free-the-files-470x340

Basic Text File Management in Python

Everything uses files.  You want to store data between uses of a program?  Create and store in a file, and then open and read from that file next time the file is run.  Have a huge database that changes daily, and you need to m...