I am trying to write a basic algorithm for addition and it is giving me an error that says: Traceback (most recent call last): Traceback (most recent call last): File "solution.py", line 6, in print C NameError: name 'C' is not definede I erased the first print statement and it fixed this issue but now it says 'a'is not defined
def solveMeFirst(a,b):
a = int(raw_input('A='))
b = int(raw_input('B='))
C = a+b
print C
res = solveMeFirst(num1,num2)
print res
print Coutside the function (see source), which causes the errorC is not defined; the edit accidentally indented it.