input: def check_happiness(string):
      """Given a string.
      Determine whether the string is considered happy.
      A string is deemed happy if its length is at least 3 and every 3 consecutive characters are unique.
      For example:
      check_happiness(a) => False
      check_happiness(aa) => False
      check_happiness(abcd) => True
      check_happiness(aabb) => False
      check_happiness(adb) => True
      check_happiness(xyy) => False
      """
output:     if len(string) < 3:
          return False
      for i in range(len(string) - 2):
          if string[i] == string[i + 1] or string[i] == string[i + 2] or string[i + 1] == string[i + 2]:
              return False
      return True