def perceptron_output(weights, bias, x):
 return step_function((dot(weights, x) + bias))

def perceptron_output ( weights , bias , x ) : return step_function ( ( dot ( weights , x ) + bias ) )
returns 1 if the perceptron fires .