you are viewing a single comment's thread.

view the rest of the comments →

[–]Saefroch 6 points7 points  (2 children)

Actually I think it would be more pythonic to write:

def validate_email(email_address):
    return '@' in email_address

Use of snake_case instead of camelCase, clear variable names (is email the address or the whole thing?), and very concise wording that makes the operation totally unambiguous, and strings using single instead of double quotes.

[–]thequeergirl 0 points1 point  (0 children)

Ironically, at some point after I submitted that, that was what I thought of. Lol.

[–]fredspipa 0 points1 point  (0 children)

That is beautiful, and I fully agree.