title: How to list files in directory and subdirectory based on filesize greater than 10kb using python
body: <p>I have gone through following scenarios</p>
  
  <ol>
  <li>which we can list files in a directory</li>
  <li>Which we can list files with their file sizes</li>
  </ol>
  
  <p>But now I need to list only the files just they are greater than some X KB with the input given by the user.</p>
  
  <p>Please help with some suitable examples</p>
  
  <p>Here is my code</p>
  
  <pre><code>import os 
  for path, dirs, files in os.walk("PathToDir" ): 
      for f in files: 
          size=os.path.getsize( os.path.join( path, f ) 
          print path, f, size
  </code></pre>