Forgive my ignorance, I am new to Python and I can’t seem to find the answer on Google. Perhaps I’m just not searching the right keywords.
I have a basic function as follows:
class Basic(object):
def Process(*values):
for i in range(len(values)):
value = int(values[i])
print value
b = Basic()
b.Process(4, 5, 6)
I’m getting the following error:
TypeError: int() argument must be a string or a number, not ‘Basic’
I’m sure it is something simple, but any help would be appreciated.
Thanks
You forgot to give
selfas an argument to Process: