DEV Community

Discussion on: Using Python Generators to avoid extra service calls

Collapse
 
mowhammadrezaa profile image
mowhammadrezaa • Edited

Hey dude nice post, you can do the trick also with a simple "or" like this:

def has_social_account(user_email):
    return has_facebook_account() or has_github_account() or has_twitter_account()
Enter fullscreen mode Exit fullscreen mode