My a.py file is like this
class sumofnumbers:
def __init__(self):
.....
def sum(self,number):
....
The Run.py file calls this file as:
import a
l=[1,2]
sum=a.sumofnumbers.sum(l)
This is throwing an error as:
sum() missing 1 required positional argument: 'number'
Both files are in same directory. Please tell me what I am doing wrong