Course Introduction
Welcome!
Two kinds of programming
Pen and paper in pairs
x = 22 def f(y): x = y z = x + y return z print(f(33)) print(x) print(y)
from string import ascii_lowercase A = ascii_lowercase A
'abcdefghijklmnopqrstuvwxyz'
A[1] A[0] A[-1] A[6] A[-6] A[4:8] A[:8] A[20:] A[2:22:4]
Autocorrect
- Python Comprehensions
- How to Write a Spelling Corrector by Peter Norvig
- spell.py
- big.txt a file containing English text, about a million words.