Davriellelouna@lemmy.world to pics@lemmy.world · edit-220 days agoU.S. Immigration and Customs Enforcement (ICE) waiting outside unmarked vanlemmy.worldimagemessage-square375fedilinkarrow-up11.55Karrow-down123
arrow-up11.53Karrow-down1imageU.S. Immigration and Customs Enforcement (ICE) waiting outside unmarked vanlemmy.worldDavriellelouna@lemmy.world to pics@lemmy.world · edit-220 days agomessage-square375fedilink
minus-squarePresidentCamacho@lemm.eelinkfedilinkarrow-up5arrow-down1·edit-219 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·14 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?