When squirrels get together for a party, they like to have cigars. A squirrel party is successful when the number of cigars is between 40 and 60, inclusive. Unless it is the weekend, in which case there is no upper bound on the number of cigars. Return true if the party with the given values is successful, or false otherwise.
To determine if a squirrel party is successful based on the number of cigars and whether it is the weekend, you can use the following logic:

1. If it is the weekend, there is no upper limit on the number of cigars, so as long as there is at least one cigar, the party is successful.
2. If it is not the weekend, the number of cigars must be between 40 and 60, inclusive, for the party to be successful.

Here is a simple implementation of this logic in Python:

```python
def is_squirrel_party_successful(cigars, is_weekend):
    if is_weekend:
        # No upper limit, just need at least 1 cigar
        return cigars >= 1
    else:
        # Need between 40 and 60 cigars, inclusive
        return 40 <= cigars <= 60

# Example usage:
print(is_squirrel_party_successful(50, False))  # True
print(is_squirrel_party_successful(30, False))  # False
print(is_squirrel_party_successful(70, True))   # True
print(is_squirrel_party_successful(0, True))    # False
```

You can call the `is_squirrel_party_successful` function with the number of cigars and whether it is the weekend to check if the party is successful.
True