title: Delete empty files
body: <p>I'd like to remove files which is empty.</p>
  
  <pre><code>import os
  book_list = ['Automate the Boring Stuff with Python.pdf',
   'OReilly.Think.Python.2nd.Edition.2015.12.pdf',
   'Apress-Magnus_Lie_Hetland-python_algorithms.pdf',
   'Python for Data Analysis - 2012.pdf']
  for book in book_list:
      if os.path.getsize(book) == 0:
          os.remove(book)
  </code></pre>
  
  <p>It seems not pythonic because of the boolean comparsion <code>==</code>.</p>
  
  <p>How to accomplish such a task in an alternative way?</p>