python: check for lines that have X number of periods '.'
<p>How do you check for lines with N number of periods in them?</p>

<pre><code>my_count = 6
indict = open("dictionary.txt").read().splitlines()
for line in indict:
# if line has my_count num of '.':
    print line

dictionary.txt looks like:
A.BAN.DON
A.BOUND
A.BI.DING
</code></pre>

<p>Appreciate any help!</p>
