COMPSCI 61A Lecture 15: Mutable Values
COMPSCI 61A verified notes
15/20View all
Document Summary
Amazon alexa and the search for the one perfect answer . Studies show more likely to ask smart speakers questions than anything else (ex shopping) Just forwarding answers from other sources from the web -- amazon is not the source. Super important to tech giants, businesses, economists etc huge thing. Because if you"re the top search for someone asking for a recommendation going to get more business. Maps due in few days (look on website) If do [x*x for x in [] ] (empty list) returns [] nothing. Returns nothing if nothing to call it on. Return tree(f(label(t)), [tree_map(b, f) for b in branches(t)]) Can plug in lambdas for the function ! From datetime import date allows you to call. Called dot notation as demonstrated as above. Can do str(d8) and will return feb. Can also do today. year and will return year. Today has property of year that is imported and the object knows how to format itself.