quiz2018_5 More python: files and dictionaries. zoo.py -- arrays http://cs.nyu.edu/cs/faculty/shasha/papers/zoo.py simpsons.py -- dictionaries http://cs.nyu.edu/cs/faculty/shasha/papers/simpsons.py filein.py http://cs.nyu.edu/cs/faculty/shasha/papers/filein.py http://cs.nyu.edu/cs/faculty/shasha/papers/preamble fileinmap.py: map function http://cs.nyu.edu/cs/faculty/shasha/papers/ourownfile http://cs.nyu.edu/cs/faculty/shasha/papers/fileinmap.py Interprocess communication -- zeromq http://learning-0mq-with-pyzmq.readthedocs.io/en/latest/pyzmq/patterns/client_server.html zmqclient1.py zmqserver1.py Discuss student experiments https://www.ted.com/talks/dan_ariely_asks_are_we_in_control_of_our_own_decisions#t-1012682 Homework: 1. Read in a file of numbers and add up the numbers in each line and print that sum just below the line, e.g., given a file foo 3 5 21 1.5 4.1 -3.2 8 you will print out: 3 5 21 1.5 30.5 4.1 -3.2 8 8.9 2. Enhance differencebetweenmeans_sig.py which I sent you a few weeks ago to calculate the mean and standard deviation of the two original populations. (in our example placebo and drug). So your standard deviation calculation will give two numbers, one for placebo and one for drugs. http://cs.nyu.edu/cs/faculty/shasha/papers/differencebetweenmeans_sig.py http://cs.nyu.edu/cs/faculty/shasha/papers/differencebetweenmeans_conf.py http://cs.nyu.edu/cs/faculty/shasha/papers/Diff2Mean.vals 3. Again, chapters 2 and 3 of natural computing