You want to use floating point division. Changing this to this works:
(4+4)+3.0/4/5*35-(3*(5+7))-6+434+5+5+5
Some examples of integer division compared to floating point division:
Python 2.7.2+ (default, Oct 4 2011, 20:06:09) >>> 3/4 0 >>> 3.0/4 0.75 >>> 3.0/4.0 0.75
A float divided by an integer is a floating point operation. Python 3 changed this so that the default floating point division:
Python 3.2.2 (default, Sep 5 2011, 21:17:14) >>> 3/4 0.75
source share