Python but Not SQL

ProbabilityMedium+20 XP+20

Python but Not SQL

A developer survey collected 640 responses. Each respondent reported which of two tools they use at work:

  • 385 respondents use Python
  • 296 respondents use SQL
  • 121 respondents use neither tool

One of the 640 respondents is selected at random. What is the probability that this respondent uses Python but does not use SQL?

Give your answer as a decimal rounded to 3 decimal places (for example, 0.412).

Probability Lab

Explore outcomes, set operations, double-counting in addition rules, and conditioning on subsets.

Event Operations
Operations:
BBBBBBOOOOBBOOOOOOOO
Addition Rule Formula
P(A) [Circle]:10/20
P(B) [Blue]:8/20
P(A ∩ B) [Overlap]:6/20
P(A ∪ B) [Union]:P(A) + P(B) - P(A ∩ B) = 10/20 + 8/20 - 6/20 = 12/20 (60%)

Operations on Sets: Toggle union, intersection, and complements. Notice how the visual highlights map exactly to set boundaries.

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.