Previous Lecture | Lecture 11 | Next Lecture |
Lecture 11, Thu 08/30
More Dictionaries, Sets
Code from class
https://github.com/ucsb-cs8-m18/code-from-class/tree/master/08-30
iClicker Questions
0. What is the result of executing the following code in the REPL?
>>> {} | {1, 2, 3}
(a) {1, 2, 3}
(b) {}
(c) Something else
Topics
-
sets - an unordered collection of things (see book for union ( ), intersection (&), difference (-), etc.) - times table revisited, with a nested loop
- convert to base program, “0123456789ABCDEF”
- Text prediction program (only preserve alphanumeric things)