Admiral Patrick@dubvee.org to TenForward: Where Every Vulcan Knows Your Name@lemmy.worldEnglish · edit-21 month agoThis is why you don't get promoted, Harry. You install recursive functions without specifying exit conditions.dubvee.orgimagemessage-square18fedilinkarrow-up1132arrow-down11file-text
arrow-up1131arrow-down1imageThis 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-21 month agomessage-square18fedilinkfile-text
minus-squarestupidcasey@lemmy.worldlinkfedilinkarrow-up4·edit-21 month 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)