Why am I receiving these syntax errors in Python 3.1.2?
<p>I have been receiving errors when trying to save and run this Python 3.1 script, and I'm not sure why. I'm new to python, and I've been trying some of the Project Euler problems (this is problem 2). I recieve a "invalid syntac" error on "evenfibsum(v)", and on the colon after "<strong>__<em>main</em>__</strong>". I'm not sure why this is as I wrote a script for the first Project Euler problem in this same fashion, and it worked fine. I understand that I could write a script without defining a function, but I'm still interested in why this is not working.</p>

<pre><code>def evenfibsum(v):
    a = 1
    b = 2
    r = 0
    while b &lt; v:
        if b%2 == 0:
            r = r + b
            a, b = b, a+b
        else:
            a,b = b, a+b

    print("The sum of the Fibonacci sequence is: ", r)

def main():
    print("This program is designed to find the sum of all even")
    print("numbers from the specificed Fibonacci sequence.")
    v = int(input("What is the highest number you would like to evaluate in the sequence? ")

    evenfibsum(v)

if __name__ == '__main__':
    main()
</code></pre>
