Admiral Patrick@dubvee.org to TenForward: Where Every Vulcan Knows Your Name@lemmy.worldEnglish · edit-22 months agoThis is why you don't get promoted, Harry. You install recursive functions without specifying exit conditions.dubvee.orgexternal-linkmessage-square18fedilinkarrow-up1132arrow-down11file-text
arrow-up1131arrow-down1external-linkThis is why you don't get promoted, Harry. You install recursive functions without specifying exit conditions.dubvee.orgAdmiral Patrick@dubvee.org to TenForward: Where Every Vulcan Knows Your Name@lemmy.worldEnglish · edit-22 months agomessage-square18fedilinkfile-text
minus-squarestupidcasey@lemmy.worldlinkfedilinkarrow-up4·edit-22 months agodef recursive_algorithm(x): If 1 + x == 2: recursive_algorithm(2) else: exit() recursive_algorithm(1)
def recursive_algorithm(x): If 1 + x == 2: recursive_algorithm(2) else: exit() recursive_algorithm(1)