Browse Source

Add FAQ information, modify comments in labs 1 and 2

raylu 14 years ago
parent
commit
f377715900
3 changed files with 11 additions and 6 deletions
  1. 4 0
      pyc/templates/faq.html
  2. 2 2
      static/lab1.py
  3. 5 4
      static/lab2.py

+ 4 - 0
pyc/templates/faq.html

@@ -23,6 +23,10 @@ Why should I learn Python?
 It's a good first language for a
 <a href="http://docs.python.org/faq/general.html#is-python-a-good-language-for-beginning-programmers">variety</a>
 of <a href="http://www.stanford.edu/~pgbovine/python-teaching.htm">reasons</a>.
+</p>
+<p>
+Learning a programming language helps you understand how your computer works.
+Addtionally, it makes learning other programming languages much easier.
 </p>
 	</li>
 

+ 2 - 2
static/lab1.py

@@ -1,8 +1,8 @@
 #!/usr/bin/env python
 
 # Welcome to the test of pyc! Thanks for participating.
-# This week's 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.
+# The first assignment is to create a function called 'test' that returns 1
+# This is probably easier than you think.
 
 def test():
     return 0

+ 5 - 4
static/lab2.py

@@ -1,7 +1,11 @@
 #!/usr/bin/env python
 
 # Normally, there won't be two assignments overlapping, but we're still testing
-# so whatever.
+# so whatever. You may wish to look to http://effbot.org/zone/python-list.htm
+# for help, or the faster-paced http://docs.python.org/tutorial/controlflow.html.
+# Also, http://www.saltycrane.com/blog/2008/01/python-variable-scope-notes/ may
+# be of use. Note that I do not recommend anything but docs.python.org as a
+# general reference.
 
 # total should return the sum of the numbers passed in
 def total(numbers):
@@ -11,9 +15,6 @@ def total(numbers):
 def onestring():
     return 1
 
-# Your code will be run in a sandbox, so print statements are not allowed in
-# the required functions. The below code gets executed when you run the python
-# file; this should aid you in debugging/testing.
 if __name__ == '__main__':
     list1 = [1, 2, 3]
     list2 = [-10, -10, -30]