Hey, I'm new to python so don't judge.

Callum Robinson cr2001 at hotmail.co.nz
Mon Jan 2 23:30:52 EST 2017


On Wednesday, January 4, 2017 at 1:26:26 PM UTC+13, Erik wrote:
> 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 ...

I feel like im missing something so blatantly obvious.




More information about the Python-list mailing list