In C++ if(function()) returns false or true
but how is done in python? I ve tried:
if function() == True:
Help!
Why is self needed?
def func(self,word):
if word == 'Hello':
return True
word = 'Hello'
if func(word):
print(word)
why is asking to put self?? if func(self,word)?