• conditional_soup@lemm.ee
    link
    fedilink
    arrow-up
    7
    arrow-down
    1
    ·
    edit-2
    1 year ago
    def count_fingers(hand: list): 
        count = len(hand)
        if count != 5:
            if count < 5:
                raise Exception("Check if fingers missing, or just smart ass")
            else:
                raise Exception("Oh... oh no.")
        return count