summaryrefslogtreecommitdiffstats
path: root/static/lab1.py
diff options
context:
space:
mode:
authorraylu <raylu@cmu.edu>2011-05-13 03:01:16 -0400
committerraylu <raylu@cmu.edu>2011-05-13 03:01:16 -0400
commitf027fc32c25ee31389e86abd10910fc89baf1eec (patch)
tree1f9a3e42f87c69b3fa0032e33285a8e7aa25e9f4 /static/lab1.py
parent4d5a1f4ed62a1cb789832423ba1b13f13bc62c71 (diff)
downloadpyc-f027fc32c25ee31389e86abd10910fc89baf1eec.tar.xz
Add some starter code
Diffstat (limited to 'static/lab1.py')
-rw-r--r--static/lab1.py11
1 files changed, 11 insertions, 0 deletions
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()