Why is the acc variable jumping back to 10?
Every frame you are assigning acc = 10.

to avoid that and make it persistent assing it as a attribute og bge.logic

from bge import logic

if not hasattr(logic, 'acc'):
    logic.acc = 10


Then can use:

if anything &gt;= logic.acc:
   logic.acc += 10