i have a class called animals. inside of the animals class there is a function called printAnimalsNames and inside of printAnimalsNames there is another function called printAnimalsOwner how to call the printAnimalsOwner from printAnimalsNames?
for example:
class animals:
def printAnimalsNames:
print("Poo")
def printAnimalsOwner:
print("Poo : Jasmin")
how to call printAnimalsOwner from printAnimalsNames ?
def printAnimalsNamesis invalid.