Python Iteration Algorithm Computation Typeerror Unsupported Operand

Python Iteration Algorithm Computation Typeerror Unsupported Operand