Hey, I'm new to python so don't judge.
Erik
python at lucidity.plus.com
Tue Jan 3 07:26:12 EST 2017
Hi Callum,
On 04/01/17 00:02, 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
OK, good. That implies it's something wrong with the function definition
('def'). Look at that very carefully :) (*)
E.
(*) My emoticon may give you a hint ...
More information about the Python-list
mailing list