Hey, I'm new to python so don't judge.
Terry Reedy
tjreedy at udel.edu
Tue Jan 3 03:06:18 EST 2017
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
More information about the Python-list
mailing list