Let's say I have this:
class main:
def add(self):
print '1 + 2 = 3'
I then want to be able to call the add function again from within itself. Like this (BUT THIS DOESNT WORK!!!)
class main:
def add(self):
print '1 + 2 = 3'
self.add()
I've tried using other classes all looped round...but that doesnt work either... :(
This should be simple but I have forgotten :(
Thanks
Mark