Friday 30 May 2014

My Python Palace

Hello visitors. Here is my new blog which has some interesting Python stuff.

Python seekers would like to visit this blog:      pythonpalace.blogspot.com

Friday 16 May 2014

Math quiz - Python

Hello readers, I am going to show you my self-created python program.

This program is basically a mathematics quiz which helps you to test your calculation skills.
It generates random questions of product, addition and subtraction.
It asks the no. of questions you want to answer.
It's algorithm is as follows:

1. It lets the user input the no. of questions he/she wants to be asked.
2. It then generates random questions by using the random module's randint function.
3. It checks the answer and gives the correct one if the user's answer is wrong.
Thats all and rest you will discover from the program itself.

Download this program:
Datafilehost

The program gives the following output :