I'm trying to use this simple function:
def add(*numbers):
print(numbers)
return sum(numbers)
x = add(1, 2, 3)
print(x)
And I'm getting this error:
File "exp.py", line 3
return sum(numbers)
^
TabError: inconsistent use of tabs and spaces in indentation
The instructor at my online course is doing absolutely the same thing and is not getting any errors, when running the file in command line. Anyone knows why is that?