class StringHandling:
def __init__(self,yo):
self.yo = yo
def my_first_test():
yo = input("Enter your string here")
ya = (yo.split())
even = 0
odd = 0
for i in ya:
if len(i) % 2 == 0:
even = even + 1
else:
odd = odd + 1
print("The number of odd words are ", odd)
print("The number of even words are", even)
if __name__ == '__main__':
c = StringHandling(yo="My name is here ")
c.my_first_test()
What is the problem here? Have tried everything! I have tried indenting and the object is created but the method my_first_test is not called/used by object c.