Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
TypeError: __init__() takes exactly 1 argument (5 given)
You need to indent all the method definitions so that they are under the class.
example
class A(): def __init__(): pass
You can learn more about indentation and how it needs to be used in Python here −
https://www.tutorialspoint.com/python_online_training/python_lines_and_indentation.asp
Advertisements
