'Is there a way to include "and" operator in a case/match condition?
According to Python documentation wa can use the OR
operator in a match/case as follows:
match True:
case(condition_1 | condition_2):
# code
I'm wondering if there is a way to do the same thing with the AND
operator, like in this example:
match True:
case(condition_1 & condition_2):
# code
Thank you in advance
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|