summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pyc/templates/lab.html1
-rw-r--r--static/lab1.py11
-rw-r--r--static/placeholder0
3 files changed, 12 insertions, 0 deletions
diff --git a/pyc/templates/lab.html b/pyc/templates/lab.html
index 2d7316d..aefbd00 100644
--- a/pyc/templates/lab.html
+++ b/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>
diff --git a/static/lab1.py b/static/lab1.py
new file mode 100644
index 0000000..d9d4dc2
--- /dev/null
+++ b/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()
diff --git a/static/placeholder b/static/placeholder
deleted file mode 100644
index e69de29..0000000
--- a/static/placeholder
+++ /dev/null