Hi Callum, On 04/01/17 00:30, Callum Robinson wrote:
I feel like im missing something so blatantly obvious.
That's because you are ;). I don't want to come across as patronising, but I want you to see it for yourself, so, here's a function definition similar to yours that doesn't have the same syntax error that yours does:
def foo(spam, ham): if spam == ham: return "same" return "different" See the difference? E. -- https://mail.python.org/mailman/listinfo/python-list