0
Find the error in the following code
10 ответов
+ 7
https://code.sololearn.com/cd3AGES5oaYL/?ref=app
+ 7
When you call it with an instance it's passed to method's first argument but when you write "test.m1()" you call it with missing arguments so Python raises error
https://code.sololearn.com/cNMopSAbbVaX/?ref=app
https://realpython.com/instance-class-and-static-methods-demystified/#instance-methods
+ 5
You need an instance to call normal methods
test().m1()
+ 4
Yes
0
Did you run the code what I posted
0
I got error even I ran the code
0
I got no error when I run code after creating an object
0
In my code I call the instance method test.m1().even though I got error
0
Can send your code that was done by you
0
Why it is not possible with test.m()