I am using Python Version 3.6.4
I was trying to write a basic python code in Jupyter Notebook where I found my code acting funny.
The below given code is working as expected But when I change the operation to (+) in the 4th line of code print( x, '+', y, '=', x+y)
then it is resulting with Error.
Question is why is this unexpected behavior happening when there is a change of operator where multiplication works fine and addition results with error?
def fuc(x):
x = input('Enter the number:')
for y in range(1,11):
print( x, 'x', y, '=', x*y)
print(fuc(2))