Compsci 101 DeMorgan’s Law, Short circuiting, Images, Tuples Live Lecture
10/1/20 Compsci 101, Fall20 1
Susan Rodger October 1, 2020
Announcements
- APT-4 due Tuesday, Oct. 6
- Assign 3 due Thursday, Oct 8
- Lab 5 on Friday
- Exam 1 – do not discuss until it is handed back.
10/1/20 Compsci 101, Fall20 2
PFTD
- DeMorgan’s Law
- Short Circuiting
- Images & Tuples
- Start today, finish next class
- Maybe an APT?
10/1/20 Compsci 101, Fall20 3
Review: Index without error?
lst = ["a","b","c","a"] dex = lst.index("b") lst.index("b") is 1 lst.index("B") ERROR! lst.index("B") ??? -1
- Use while loop to implement index.
- What is the while loop’s Boolean condition?
10/1/20 Compsci 101, Fall20 4