A while ago I had a problem to solve:
Write a program to guess a number between 1 and 1,000,000 in python.
This is a simple learning program, done in high school or university, particularly when learning a programming language.
The Problem
The problem can be translated in