Object() takes no parameters?


Hi, I have no clue why the editor gives me this error. Please help. Thanks.

class A:
    def __int__(self, on):
        self.__on = not on

    def get_on(self):
        return self.__on

def main():
    a = A(False)

main()  # Call the main function

class A:
    def __init__(self, on):


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.