Create Class Page in Python

From dftwiki3
Jump to: navigation, search

--D. Thiebaut (talk) 15:53, 13 January 2015 (EST)


text="""<br /><br />
====&nbsp;====
----
{| style="width:100%%" border="0"
|width="45%%"|'''Week %d'''  %s %d
|width="20%%"| '''&nbsp;''' 
|width="25%%"| '''&nbsp;''' 
|-
|}
<br />
::{| class="mw-collapsible mw-collapsed" style="width:100%%" border="1"
|- style="background:#dddddd;"
|width="60%%"| '''Topics''': 
|width="15%%"| '''Lab/Hw'''
|width="25%%"| '''Reading''' 
|-valign="top"
|
* &nbsp;
|
* Homework 
* Lab 
|
* &nbsp;
|}

"""
dates = (
    ("Jan", (26,) ),
    ("Feb", (2, 9, 16, 23) ),
    ("Mar", (2, 9, 16, 23, 30) ),    
    ("Apr", (6, 13, 20, 27 ) ) )

count = 1
for ( month, days ) in dates:
    #print( "month = ", month, " days = ", days )
    for day in days:
        print( text % ( count, month, day ) )
        print()
        count += 1