ladder board python program