class Factor:
def __int__(self, a, b, c):
self.a = a
self.b = b
self.c = c
a = input("What is A?")
a = int(a)
b = input("What is B?")
b = int(b)
c = input("What is C?")
c = int(c)
e = Factor(a,b,c)
This is the error it returns for any class I create
Traceback (most recent call last):
File "C:\Users\Alex\Desktop\Alex Factoring Extra Credit.py", line 37, in <module>
e = Factor(a,b,c)
TypeError: object.__new__() takes no parameters
It happens for any class I make and I have looked everywhere, uninstalled, and re-installed and yet I can not find a solution. I have copy and pasted classes I have found elsewhere and those will work, yet mine will work even though it is exactly the same. Any help is appreciated.