$$\displaystyle f(k,n,p)=\Pr(k;n,p)=\Pr(X=k)={\binom {n}{k}}p^{k}(1-p)^{n-k}$$ for $k = 0, 1, 2, ..., n$.
#determine distribution
#consider 10 free throw attempts with p = .5
#plot probability
#probability of 6 successes?
#probability of at least 6 made?
#with cumulative distribution function
#Example 2: p = 0.8, n = 20
#P(10)
#P(n > 14)