2009 109

From XPUB & Lens-Based wiki
Revision as of 13:52, 9 December 2008 by Michael Murtaugh (talk | contribs)

http://www.danos.nl/teog

In-class, doing Exercise

def histogram(s):
	d = dict()
	for c in s:
		if c not in d:
			d[c] = 1
		else:
			d[c] += 1
	return d