pull down to refresh

I'm not 100% sure about python performance with this, but it'd likely be faster if you drop the else and make the recursive call through a default return, like so:
def count_votes():
    if biden.votes > trump.votes:
        return declare_winner(biden)
    return count_votes()
or maybe even like so though I hate this notation because it's a headache when reviewing:
def count_votes():
    return declare_winner(biden) if biden.votes > trump.votes else count_votes()
Let's not beat around the bush, haha
def count_votes():
    return declare_winner(biden)
reply
30 sats \ 0 replies \ @optimism 8h
lol
reply