answersLogoWhite

0

The answer is "an accumulator."

"A running total is a sum of numbers that ACCUMULATES with each iteration of a loop. The variable used to keep the running total is called an accumulator."

It can be any variable you want! It could be total, tot, etc. Here is an example:

total = 0

randoms = [random.randRange(0, 99999)] * 100 # Creates a list of 100 random numbers

for number in randoms:

total += number

print(total) # Py3k print statement. Sample output: 35460

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

Does a sentinel variable keep a running total?

It is not common, but possible. (If the list members are numbers.)


Formula for total variable cost?

Total Variable Cost = Number of Units * Variable cost per unit


How do you calculate total variable expenses in a contribution income statement?

Total variable cost is typically the sum of all variable labor, variable materials, and variable overhead expenses.


Is responding variable the same as dependent variable?

There is in fact a difference. Depending Variable: Varies on the outcome of the Responding Variable. Responding Variable: Varies on the outcome of both itself and the Depending Variable. Math keeps us goin'!


How do you calculate variable cost per unit?

Variable cost per unit = Total variable cost / total number of units manufactured


How do you calculate Total Cost without Total variable cost?

To calculate the Total Cost without Total variable cost, one should estimate for the variables or substitute for the variables with a variable such as X or Y and then solve for the approximate total cost.


What is continuos variable?

it is like a big or huge distance from a place to another that keeps on


What is Total variable costs?

Total variable costs are the sum of expenses which change proportionally as the price of services and goods fluctuate. The total marginal costs above produced units is also referred to as total variable costs.


When total variable cost may increase variable cost per unit is constant or no?

Total variable cost can increase while the variable cost per unit remains constant if the total quantity of output produced increases. In this scenario, the variable cost per unit does not change, but since more units are being produced, the overall total variable cost rises. Conversely, if the output level stays the same, an increase in total variable cost would imply an increase in the variable cost per unit.


Is selling price and total variable cost the same?

Selling price = Total Cost (Total Variable cost + Total fixed cost) + profit margin


What is the type of homeostatic mechanism that reduces any changes in the value of a variable or keeps a variable close to a particular pre-established setpoint?

Negative feedback is the homeostatic mechanism that reduces any changes in the value of a variable or keeps a variable close to a pre-established setpoint. When the system detects a deviation from the setpoint, it initiates actions to bring the variable back to its desired level.


What does count equals count plus 1 and total equals total plus 1 in algorithm means?

This is an instruction to increment the value of a variable by 1 (in this case, either the variable count or the variable total).