Scheme Mastermind Game Re-write Using Python and Perl

There is a game “mastermind” written using scheme, which can be found using the folliwng page.

It looks like this:

Here I will re-write the game using Perl and Python.