I am trying the code in the tutorial given here - http://www.vogella.com/tutorials/Python/article.html
He uses python 2.6 and I use 3.3. I don't know if that causes my problem.
My code -
def add(a,b):
return a+b
def addFixedValue(a):
y = 5
return y+a
print add(1,2)
print addFixedValue(1)
Error is -
print add(1,2)
^
SyntaxError: invalid syntax
How do I correct it ?