79376514

Date: 2025-01-22 04:19:43
Score: 0.5
Natty:
Report link

here is my solution..

def cat_dog(str):
  l = len(str)
  l1 = len(str.replace('cat','#'))
  l2 = len(str.replace('dog','#'))
  t1 = (l-l1)
  t2 = (l-l2)
  if t1 == t2:
     return True
  return False  
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Manoj