Cryptarithmetic Problem Python Code For Snake