Demo entry 6285352

foo

   

Submitted by anonymous on Oct 18, 2016 at 18:57
Language: Python. Code size: 330 Bytes.

# indent your Python code to put into an email
import glob
# glob supports Unix style pathname extensions
python_files = glob.glob('*.py')
for file_name in sorted(python_files):
    print '    ------' + file_name

    with open(file_name) as f:
        for line in f:
            print '    ' + line.rstrip()

    print

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).