Coding the Matrix
Python Lab via Philip Guo's
Python Tutor
Note: The Task numbers refer to Task numbers in the textbook. They are not Coursera task numbers.
(Task 0.5.1) Minutes in a Week
(Task 0.5.2) Remainder
(Task 0.5.3) Divisibility
(Task 0.5.4) Conditional Expression
(Task 0.5.5) Squares Set Comprehension
(Task 0.5.6) Powers-of-2 Set Comprehension
(Task 0.5.7) Double comprehension evaluating to nine-element set
(Task 0.5.8) Double comprehension evaluating to five-element set
(Task 0.5.9) Set intersection as a comprehension
(Task 0.5.10) Average
(Task 0.5.11) Cartesian-product comprehension
(Task 0.5.12) Sum of numbers in list of list of numbers
(Task 0.5.14) Three-element tuples summing to zero
(Task 0.5.15) Nontrivial three-element tuples summing to zero
(Task 0.5.16) One nontrivial three-element tuple summing to zero
(Task 0.5.17) List and set differ
(Task 0.5.18) Odd numbers
(Task 0.5.19) Using range and zip
(Task 0.5.20) Using zip to find elementwise sums
(Task 0.5.21) Extracting the value corresponding to key k from each dictionary in a list
(Task 0.5.22) Extracting the value corresponding to k when it exists
(Task 0.5.23) A dictionary mapping integers to their squares
(Task 0.5.24) Making the identity function
(Task 0.5.25) Mapping integers to their representation over a given base
(Task 0.5.26) A dictionary mapping names to salaries
(Task 0.5.28) Procedure nextInts
(Task 0.5.29) Procedure cubes
(Task 0.5.30) Procedure dict2list
(Task 0.5.31) Procedure list2dict
(Task 0.5.32) Generating all three-digit numbers over a given base