can_vote(age, is_citizen) that returns True if a person is at least 18 years old and a citizen, and False otherwise.can_vote(20, True)
True
Meets both conditions.
can_vote(20, False)
False
Not a citizen, so ineligible regardless of age.
Combine both conditions with the `and` operator.
You can return the boolean expression directly without an if statement.