diff -r 10074d1357ff -r ed38dd9bdb50 SEESenv/web/html/ch5func.html --- a/SEESenv/web/html/ch5func.html Mon Feb 22 22:38:51 2010 +0530 +++ b/SEESenv/web/html/ch5func.html Tue Feb 23 19:43:04 2010 +0530 @@ -27,7 +27,7 @@
- + Functional Approach @@ -36,42 +36,42 @@
- + 1. Function scope
- + 2. Default Arguments
- + 3. Keyword Arguments
- + 4. Parameter Packing and Unpacking
- + 5. Nested Functions and Scopes
- + 6. map, reduce and filter functions @@ -80,7 +80,7 @@
- + 6.1. List Comprehensions @@ -96,7 +96,7 @@

- + Functional Approach

@@ -113,42 +113,42 @@
- + 1. Function scope
- + 2. Default Arguments
- + 3. Keyword Arguments
- + 4. Parameter Packing and Unpacking
- + 5. Nested Functions and Scopes
- + 6. map, reduce and filter functions @@ -157,7 +157,7 @@
- + 6.1. List Comprehensions @@ -330,7 +330,7 @@

- + 1.Function scope

@@ -406,7 +406,7 @@

- + 2.Default Arguments

@@ -454,7 +454,7 @@

- + 3.Keyword Arguments

@@ -592,7 +592,7 @@

- + 4.Parameter Packing and Unpacking

@@ -634,7 +634,7 @@ print "Title: %s" % (title) print "Full name: %(first)s %(middle)s %(last)s" % name - print "Age: %d\nEmail-ID: %s" % args + print "Age: %d nEmail-ID: %s" % args

The above function can be called as. Note, the order of keyword parameters can @@ -681,7 +681,7 @@ def print_report(title, age, email, first, middle, last): print "Title: %s" % (title) print "Full name: %s %s %s" % (first, middle, last) - print "Age: %d\nEmail-ID: %s" % (age, email) + print "Age: %d nEmail-ID: %s" % (age, email) >>> args = (29, 'johny@example.com') >>> name = { @@ -701,7 +701,7 @@

- + 5.Nested Functions and Scopes

@@ -727,30 +727,18 @@ in Python you are suggested to read:

- - <line_block> - - <line> -
-
-
-
- http://avinashv.net/2008/04/python-decorators-syntactic-sugar/ -
- </line> -
- - <line> -
-
-
-
- http://personalpages.tds.net/~kent37/kk/00001.html -
- </line> -
- </line_block> -
+
+
+
+
+ http://avinashv.net/2008/04/python-decorators-syntactic-sugar/ +
+
+
+
+
+ http://personalpages.tds.net/~kent37/kk/00001.html +

However, the following is an example for nested functions in Python:

@@ -770,7 +758,7 @@

- + 6.map, reduce and filter functions

@@ -1020,7 +1008,7 @@

- + 6.1.List Comprehensions