Davriellelouna@lemmy.world to pics@lemmy.world · edit-213 days agoU.S. Immigration and Customs Enforcement (ICE) waiting outside unmarked vanlemmy.worldimagemessage-square49linkfedilinkarrow-up19arrow-down10
arrow-up19arrow-down1imageU.S. Immigration and Customs Enforcement (ICE) waiting outside unmarked vanlemmy.worldDavriellelouna@lemmy.world to pics@lemmy.world · edit-213 days agomessage-square49linkfedilink
minus-squarePresidentCamacho@lemm.eelinkfedilinkarrow-up0·edit-211 days agoI wrote a simple formula for it the other day actually def shoot_masked_gunman(color, job): you = 2 if color == "white" else 0 masked_gunman = 100 if job == "cop" else 1 if you > masked_gunman : print("The justice system works!") else: print("Life without parole")
minus-squarewischi@programming.devlinkfedilinkarrow-up1·6 days agoWhy are the first two ifs in infix notation and the third isn’t?
I wrote a simple formula for it the other day actually
def shoot_masked_gunman(color, job): you = 2 if color == "white" else 0 masked_gunman = 100 if job == "cop" else 1 if you > masked_gunman : print("The justice system works!") else: print("Life without parole")
Why are the first two ifs in infix notation and the third isn’t?