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

Dennis Lee Bieber wlfraed at ix.netcom.com
Tue Jan 3 02:59:08 EST 2017


On Tue, 3 Jan 2017 16:02:15 -0800 (PST), Callum Robinson
<cr2001 at hotmail.co.nz> declaimed the following:

>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

        Count your parentheses... You should have the same number of ) as you
have (

--
        Wulfraed                 Dennis Lee Bieber         AF6VN
    wlfraed at ix.netcom.com    HTTP://wlfraed.home.netcom.com/



More information about the Python-list mailing list