In this case, we need to increment the final percent from zero to 100%. However, the percent variable is not assigned, and this results in the following error:
UnboundLocalError: local variable 'percent' referenced before assignment
The solution is to initialize the percent variable before we begin executing the process.
In this case, we need to increment the final percent from zero to 100%. However, the percent variable is not assigned, and this results in the following error:
UnboundLocalError: local variable 'percent' referenced before assignment
The solution is to initialize the percent variable before we begin executing the process.