September 2010
M T W T F S S
« Dec    
 12345
6789101112
13141516171819
20212223242526
27282930  

Categories

Project Euler Problem 145 in Python [Analytic]

Show Problem
Here is the mathematical analysis of the problem:

There are no 1-digit solutions. You can verify it easily. If you add any digit with itself whether odd or even it becomes an even digit or a number wit an even digit.

For ab to be a two-digit solution, a+b must be odd and less than 10, [...]

Entry Fields in Python

Entry components are areas in which users can enter text or programmers can display a
line of text. This post demonstrates entry components in a program. When the user types
text into an Entry component and presses the Enter key, a event occurs. If an
event handler is bound to that event for the Entry component, the event is [...]

GUI Labels in Python

A graphical user interface allows user to interact with a program. In this program we only introduce labels which actually do not support interaction but only serve for displaying messages. We use Tkinter module of Python for this specific program. There are other GUI packages as well. Class LabelDemo defines GUI for our program. It [...]

Craps Simulation in Python

Craps is a popular dice game. The rules are as follows: A player rolls two dice. Each dice has six faces. These faces contain 1, 2, 3, 4, 5, and 6 spots.  After dices have come to rest, the sum the spots on the two upward faces are calculated. If the sum is 7 or [...]

Python Programming Language

Python bases on multiple programming paradigms such as object-oriented, imperative, and functional. It uses dynamic type system and also automatic memory management.  Because it is dynamic it is usually used as a scripting language.

Its development began in late 1989 by Guido van Rossum. Its public release was in 1991. Guido van Rossum got help from [...]