


from statistics import mean, stdev







def        lowerCAmelCase_  (      __lowerCamelCase							,			__lowerCamelCase = 3			):
							__snake_case	:    int											=     min(__lowerCamelCase			)
							__snake_case	:    Tuple											=     max(__lowerCamelCase			)
							# normalize data
							return [round((x - x_min) / (x_max - x_min)							,			__lowerCamelCase			) for x in data]







def        lowerCAmelCase_  (      __lowerCamelCase							,			__lowerCamelCase = 3			):
							__snake_case	:    List[str]											=     mean(__lowerCamelCase			)
							__snake_case	:    Dict											=     stdev(__lowerCamelCase			)
							# standardize data
							return [round((x - mu) / (sigma)							,			__lowerCamelCase			) for x in data]





def        lowerCAmelCase_  (      __lowerCamelCase							,			__lowerCamelCase			):
							return int((input_a, input_a).count(0			) == 0			)







def        lowerCAmelCase_  (      ):
							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))

