


def       _lowerCAmelCase    (				lowerCAmelCase_				:list		,    lowerCAmelCase_				:int = 0				)->list:
   '''simple docstring'''






   snake_case_            =       length or len(lowerCAmelCase_				)
   snake_case_            =       False
   for i in range(length - 1				):
      if list_data[i] > list_data[i + 1]:
         snake_case_     ,     snake_case_            =       list_data[i + 1], list_data[i]
         snake_case_            =       True

   return list_data if not swapped else bubble_sort(lowerCAmelCase_		,    length - 1				)


if __name__ == "__main__":
   import doctest

   doctest.testmod()








def       _lowerCAmelCase    (				lowerCAmelCase_				:int		,    lowerCAmelCase_				:int				)->int:
   '''simple docstring'''






   return int((input_a, input_a).count(0				) == 0				)



def       _lowerCAmelCase    (				)->None:
   '''simple docstring'''






   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))




