[SOLVED] TypeError: validate() takes 1 positional argument but 2 were given (Automata lib)


This Content is from Stack Overflow. Question asked by gfts_16


Self is use to indicate a method belong to a class. It is not a argument pass to method as you did in your code.Use this link for more info:

What is the purpose of the `self` parameter? Why is it needed?

This Question was asked in StackOverflow by gfts_16 and Answered by YJR It is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?