Site Index Intro Learning to Program Python Programs Tutorials Links

Programs

Various finised programs or work-in progress
For your scrutiny

Hello World

The "Hello world" program is by tradition the first program to create, and can alsobe used to demonstrate the simplicity of a programming language.
As Python has very clean syntax the hello world program only span one line. But here it is.

Calculator

The calculater program will let you calculate areas and the perimeter of some pre-described shapes, e.g. a square or a circle.
This program is more advanced with the use of functions, exception handling and indexing.

Type

The type program is my first atempt at a purposeful program, as during the programming of the BlackJack game, I needed to know in what order the different datatypes like strings or numbers that has the highest value so that I will be able to predict the results when during math test on different datatypes, for example if "string" > 5 or the other way.
The program then spits out a txt-file with all the results.

BlackJack

The BlackJack game is so far the pride of this site, it is a text based version of the classic casino game.
You can read the about the creation here. Which describes the thoughts behind the steps while creating this game, by going through version history.