0
class and methods
hi how can i use a method in another method in one class for example class student(): def plus(self,A,B): def a(self): i want to use def plus in this method
5 Réponses
+ 3
class student():
def plus(self):
print("plus activated")
def a(self):
self.plus()
test = student()
test.a()
+ 2
Just call self.plus() in the a() method.
0
can u write code of this @Russ
0
I have changed the def plus
0
Thanks @Russ it works