Data Science, Statistics, Probability, Data Analytics, Data Science Interview.
to get the number of favorable cases. What are our unfavorable cases? Let us negate our favorable cases. Unfavorable cases = Not (Two cards are not of the same color or shape) From Boolean Algebra, Not (A Or B) results in Neither A nor B. This can be seen from the below Venn Diagram. Image created