Hey, I'm new to python so don't judge.
Erik
python at lucidity.plus.com
Tue Jan 3 19:45:08 EST 2017
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.
More information about the Python-list
mailing list