I am working on a function to reverse a string and when I run it I get two errors one at tot -= i showing TypeError: unsupported operand type(s) for -=:
tot -= i
TypeError: unsupported operand type(s) for -=: