JPDev@programming.dev to Programmer Humor@programming.dev · 10 months agoTypeScript is Quantum Readyprogramming.devimagemessage-square31fedilinkarrow-up1537arrow-down17
arrow-up1530arrow-down1imageTypeScript is Quantum Readyprogramming.devJPDev@programming.dev to Programmer Humor@programming.dev · 10 months agomessage-square31fedilink
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())
`