hairinmybellybutt@lemmy.world to Programmer Humor@programming.devEnglish · 1 year agocall the doctor, the CS doctorlemmy.worldimagemessage-square40fedilinkarrow-up1409arrow-down128
arrow-up1381arrow-down1imagecall the doctor, the CS doctorlemmy.worldhairinmybellybutt@lemmy.world to Programmer Humor@programming.devEnglish · 1 year agomessage-square40fedilink
minus-squareconditional_soup@lemm.eelinkfedilinkarrow-up7arrow-down1·edit-21 year agodef 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
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