approved = true risk = 2 if approved and risk < 5: if not false: decision = "allow" else: decision = "deny" else: decision = "deny" print(decision)