untitled
NEW! Upgrade to Pro Hosting and receive Ad-Free Webtools + More!

HOME JAVA


Python Examples

Click the following link to download graphics module.


The following is for beginners in Python

The following code return 1 if the number inputted is odd and returns 0 for even numbers. To run it call in the file.

Click here to view file or right click to save

The following code finds the square of a number.Run it like square(number).

Click here to download

The following code calculates the value added tax of a certain price on a given interest rate.Type in VAT() on the idle screen to run   it, it will request price and interest rate.

Click here to download

The following is for Advanced programmers

(You are going to need the graphics module for this program) We were requested to make a program which has some colours and shapes and a drawing area. The following program lets you draw some shapes I only used three shapes and 3 colours but that is just the base you can use any colours you want to use. To see wat the program does, run it in python the firstly you must click on the colour, then shape and click on the white area where you want to draw it.

Click here to download the file

We were requested to do an algorithm which to sort lists click on the below link to download the file

click here to download sort.py

We were requested to do a file which could return the 3 most common words and 3 least common words in a given filename. Note:   The following program needs sort.py to run properly, please download it before you run the following file.

Click here to download the file

The following code is a code is an expert system which expertises in asthma.

Asthma expert system

The following book might help you understand python better like it did to me. When you use this book make suer you have a computer in front of you this makes it easier for you to understand.

Click here to view or download file

To learn more about graphics in python click here.

Graphics Module Reference pdf file

If you do not understand my algorithms feel free to ask me, I will help you as much as I can my email: sthato@hotmail.com or Click here if you are using Microsoft Outlook and I will try to answer you as soon as possible. Remember you can ask me anything you would like to know about Python programming.



Web Hosting · Blog · Guestbooks · Message Forums · Mailing Lists
Easiest Website Builder ever! · Build your own toolbar · Free Talking Character · Audio, Fonts, Clipart
powered by a free webtools company bravenet.com