Browse Source

Add some starter code

raylu 14 years ago
parent
commit
f027fc32c2
3 changed files with 12 additions and 0 deletions
  1. 1 0
      pyc/templates/lab.html
  2. 11 0
      static/lab1.py
  3. 0 0
      static/placeholder

+ 1 - 0
pyc/templates/lab.html

@@ -2,6 +2,7 @@
 {% block body %}
 Lab {{ lab.id }} due {{ lab.due }} at 11:59:59 PDT (UTC-7):
 <br>{{ lab.name }}
+<br><a href="/static/lab{{ lab.id }}.py">Download</a> the starter code
 
 <table>
 <tr>

+ 11 - 0
static/lab1.py

@@ -0,0 +1,11 @@
+#!/usr/bin/env python
+
+# Welcome to the test of pyc! Thanks for participating.
+# This weeks assignment is to create a function called 'test' that returns 1
+# Your code will be run in a sandbox, so print statements are not allowed.
+
+def test():
+	return 0
+
+if __name__ == '__main__':
+	print test()

+ 0 - 0
static/placeholder