I want to import a class that I have defined and use it in a different file (main.py):
this is the class i have defined:
Example.py:
class Example:
m=0
n=0
def _init_(self,n,m):
self.n=n
self.m=m
main.py
from Example import *
p = Example (2,3)
both of the files are at at the same directory but when I run main.py I am getting an error:
"TypeError: object() takes no parameters"
where am I wrong ?