Week 13: May 1 - 5¶
Computing With Text¶
Project Gutenberg provides an online database of more than 49,000 free ebooks. We use Python’s file handling functions to load and display some classic texts.
Week 13 Notebook¶
Python¶
- Reading and writing files using open, close and read.
- String processing - lower, replace, split, strip and join.
- Sorting sequences using sorted.
- Dictionaries
- Dictionary comprehensions
- zip
NumPy¶
- numpy.random.choice
- argmax
Matplotlib¶
- pie
Quiz 11: Random Numbers¶
- numpy.random.rand
- numpy.random.randn
- numpy.random.normal
- numpy.random.randint
- numpy.random.choice