JPDev to Programmer Humor · 10 months agoTypeScript is Quantum Readyimagemessage-square32fedilinkarrow-up1555arrow-down17
arrow-up1548arrow-down1imageTypeScript is Quantum ReadyJPDev to Programmer Humor · 10 months agomessage-square32fedilink
minus-squareOctopus1348@lemy.lollinkfedilinkarrow-up3·10 months agoIt’s much more readable when you use else depending on the checks. You can still use return in an else block. def Allowed() if name == "Octopus1348": return True elif name == "Bobert": return True else: return "You are not allowed to use this script." print(Allowed()) `
It’s much more readable when you use else depending on the checks. You can still use return in an else block.
def Allowed()
print(Allowed())
`