Add missing colon

This commit is contained in:
George Lacey 2017-02-15 12:39:43 +00:00
parent ba994ccead
commit b607814e0f

View File

@ -19,7 +19,7 @@ def line_perceptron():
p.add_input("bias", 1, rand.uniform(-1, 1))
def answer(p_x, p_y):
if p_y > calc_y(p_x)
if p_y > calc_y(p_x):
return 1
else:
return -1