So, I thought you could use variables in python but................. o.o
Hi again fellows :) So I have this code i've made up, wich is step one to a home-made little calculator. It is supposed to work, but my while loop seems to consider that my variables are not declared, and I really don't get why o.o so my code is here : https://code.sololearn.com/cFS7YVKQ4fcP and I enter 15+25-30 for the testing (wich is supposed to print 10, logically. But instead i get this message : >>>>>>>> Traceback (most recent call last): File "..\Playground\", line 69, in <module> Add_Sub() File "..\Playground\", line 12, in Add_Sub while counter<=len(base_calc): UnboundLocalError: local variable 'counter' referenced before assignment <<<<<<<< But why in Pete's name do have I this error showing up ? I really don't get it :(