ReportLab Preppy Test Suite 006

# Preppy Test 006 - Writing HTML files without writing .py files

This test should create a readable HTML file (sample006.html), without any associated Python file (sample006.py).

## Expected Output

You are reading this HTML file, so this test worked.

Below is a listing of the files in the same directory as this HTML file. 'sample006.py' should not there.

{{script}} import os leftColumn = [] rightColumn = [] fileList = os.listdir(os.getcwd()) for item in range(0,len(fileList),2): if os.path.isfile(fileList[item]): leftColumn.append(fileList[item]) for item in range(1,len(fileList)-1,2): if os.path.isfile(fileList[item]): rightColumn.append(fileList[item]) for loopCounter in range(0, len(leftColumn)): print("
\n") print(leftColumn[loopCounter]) print("\n") print(" | ") try: print(rightColumn[loopCounter]) print("
") except: print(" ") print("") {{endscript}}