On 1/3/2017 7:02 PM, Callum Robinson wrote:
When i check the code it comes up with invalid syntax and my writing line gets
re directed here
def is_same(target, number:
if target == number:
result="win"
elif target > number:
result="low"
else:
result="high"
return result
When I paste this into a file in IDLE and try to run the file, 'if' is
highlighted in red. This means that there is an error somewhere at or
before the 'if'.
--
Terry Jan Reedy
--
https://mail.python.org/mailman/listinfo/python-list