I have a file a.py with class to include, another file b.py with the main code. I want to create object by uer input in b.py file.
I'm new at programming and I am really stuck.
Here is instance
Here is the first file a.py
class Sell:
def __init__(self,x,y):
self.x,self.y=x,y
Here is the second file b.py
#b.py
from a import Sell
x=input()
y=input()
s=Sell(x,y)
I have a weird error:
Type error: İnit takes 1 argument but you gave 3 argument.
I really dont understand that init takes 1 argument,init(self,x,y)
İf someone help me ı can pray for his/her code works well in her/his project.