title: How to create a python code to count number of comment lines and lines containing whitespace in a file?
body: <p>How to create a python code to count number of comment lines and lines containing whitespace in a file? I have an assignment and I need to write an additional command line utility that  counts the  lines of code in my program. The utility needs to open all  .py files in the current directory(except for the code in the utility file itself), count the  lines in the file that are not blank and not comments, and output the count to the terminal.</p>