¡@

Home 

python Programming Glossary: totalpints

Why am I getting “UnboundLocalError” in my code? [closed]

http://stackoverflow.com/questions/11715086/why-am-i-getting-unboundlocalerror-in-my-code

Concepts Labs Chapter 11 Lab 8.py line 18 in main totalPints getTotal pints File C Users Alex Desktop Programming Concepts.. Concepts Labs Chapter 11 Lab 8.py line 42 in getTotal totalPints pints counter UnboundLocalError local variable 'totalPints'.. totalPints pints counter UnboundLocalError local variable 'totalPints' referenced before assignment Here is my code so far # Lab 8..