Ad
  • Custom User Avatar

    Two reasons.

    1. count only accepts one string as an argument.

    2. ('x' && 'X') evaluates to false, so you are essentially saying str.count(false).