The probability of obtaining exactly 7 heads when flipping 8 coins can be deduced using the binomial probability
The formula for the binomial probability, P, is

Where

Substitute the values into the formula for binomial probability

Hence, the probability of obtaining exactly 7 heads when flipping 8 coins is 1/32 (in fractions)