Skip to content

Commit 13ab6b1

Browse files
committed
Update labs and schedule for Functions & FP
1 parent dc7ef17 commit 13ab6b1

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

res/labs.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@
66
"part2": "https://github.com/stanfordpython/python-labs/blob/master/notebooks/lab-2/data-structures-part-2.ipynb",
77
"solutions": "https://github.com/stanfordpython/python-labs/blob/master/solutions/lab-2.py",
88
"visible": true,
9+
"active": false
10+
},
11+
{
12+
"week": 4,
13+
"topic": "Functions and Functional Programming",
14+
"part1": "https://github.com/stanfordpython/python-labs/blob/master/notebooks/lab-4/functions-and-fp-part-1.ipynb",
15+
"part2": "https://github.com/stanfordpython/python-labs/blob/master/notebooks/lab-4/functions-and-fp-part-2.ipynb",
16+
"solutions": "#",
17+
"visible": true,
918
"active": true
1019
}
1120
]

res/schedule.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@
8080
{
8181
"title": "Functional Programming",
8282
"date": "2020-01-27",
83-
"active": true,
83+
"active": false,
8484
"description": "We first discuss functional programming's place in the landscape of programming paradigms - what makes this different from Java and C++ - and then introduce the concept of higher-order functions through map and filter, and anonymous lambda functions. We'll understand iterators, generator expressions, and generators as core ideas in functional programming, and briefly talk about where these tools could show up in Python. Lastly, we'll go over decorators - an amazing application of functional programming ideas to solve common programming problems."
8585
},
8686
{
8787
"title": "Functions and FP Lab",
8888
"date": "2020-01-29",
89-
"active": false,
89+
"active": true,
9090
"description": "This lab first drills function argument rules, then asks you to write functions utilizing the new superpowers offered by Python functions. Several function nuances are covered, including the danger of mutable default values. Then, we conduct a more thorough investigation of function objects and their attributes, at least in CPython. After, we'll use functions to explore the new programming paradigm that we've found in Python. We'll practice with map, filter, and lambda, and then explore functools.reduce and the operator module for more depth. As a thought experiment, we briefly discuss how to convert iterative Python code to functional code, and then practice with iterators and generators, using the itertools module to build power operators from linear algebra in under ten lines of Python. Closure semantics are also reviewed as a preview for the main event - writing decorators!"
9191
}
9292
],

0 commit comments

Comments
 (0)