





'''simple docstring'''


def 							UpperCAmelCase_  (						__lowerCamelCase					:					str	,__lowerCamelCase					:					str ):
   lowercase_			:Optional[Any]    			= len(__lowerCamelCase )
   lowercase_			:int    			= []
   for i in range(len(__lowerCamelCase ) - pat_len + 1 ):
      lowercase_			:List[Any]    			= True
      for j in range(__lowerCamelCase ):
         if s[i + j] != pattern[j]:
            lowercase_			:str    			= False
            break
      if match_found:
         position.append(__lowerCamelCase )
   return position


if __name__ == "__main__":
 assert naive_pattern_search('''ABCDEFG''', '''DE''') == [3]
 print(naive_pattern_search('''ABAAABCDBBABCDDEBCABC''', '''ABC'''))









'''simple docstring'''


def 							UpperCAmelCase_  (						__lowerCamelCase					:					int	,__lowerCamelCase					:					int ):
   return int((input_a, input_a).count(0 ) == 0 )
def 							UpperCAmelCase_  (						):
   assert and_gate(0	,0 ) == 0
   assert and_gate(0	,1 ) == 0
   assert and_gate(1	,0 ) == 0
   assert and_gate(1	,1 ) == 1


if __name__ == "__main__":
 test_and_gate()
 print(and_gate(1, 0))
 print(and_gate(0, 0))
 print(and_gate(0, 1))
 print(and_gate(1, 1))


