Create Class Page in Python
--D. Thiebaut (talk) 15:53, 13 January 2015 (EST)
text="""<br /><br />
==== ====
----
{| style="width:100%%" border="0"
|width="45%%"|'''Week %d''' %s %d
|width="20%%"| ''' '''
|width="25%%"| ''' '''
|-
|}
<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"
|
*
|
* Homework
* Lab
|
*
|}
"""
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