def main():
    """ application entry point to start your training """
    print("Learn2Calc v0.4 by Thomas Lehmann 2012")
    print("...Python %s" % sys.version.replace("\n", ""))
    sessionManager = SessionManager()
    # loading previous training results
    sessionManager.load("Learn2Calc.dat")
    sessionManager.dumpStatistic()

    # ensure at least 30 divisions per pattern (digits per number)
    # increase this if you need more but be aware that the creation
    # of the cache takes more time then!
    DivisionCache.update(250, 30)

    # here you can adjust your training parameters (each entry will finally represent one session):
    sessionParameter = [ # multiplication of three numbers (each one digit) with exact 10 tasks
                         TrainingParameter([1,1,1]  , '*', TrainingParameter.MODE_COUNT, 10),
                         # addition of four numbers (each one digit) with timeout of 1 minute
                         TrainingParameter([1,1,1,1], '+', TrainingParameter.MODE_TIMEOUT, 60),
                         # subtraction of three values (decreasing size) with exact 10 tasks
                         TrainingParameter([3,2,1]  , '-', TrainingParameter.MODE_COUNT, 10),
                         # multiplication of two numbers (decreasing size) with timeout of 1 minute
                         TrainingParameter([2,1]    , '*', TrainingParameter.MODE_TIMEOUT, 60),
                         # integer division of two numbers (decreasing size) with exact 10 tasks
                         TrainingParameter([3, 1]   , '/', TrainingParameter.MODE_COUNT, 10)
                       ]

    # creating and running sessions depending on your training parameters
    count = 0
    for parameter in sessionParameter:
        session = Session(parameter)
        if session.run():
            sessionManager.add(session)
            count += 1

    if count > 0:
        # storing current training results
        sessionManager.save("Learn2Calc.dat")
        sessionManager.dumpStatistic(True)
 application entry point to start your training 
recipes/Python/578111_Learning_calculate_mental/recipe-578111.py