[Edu-sig] Python Quiz

Kirby Urner urnerk at qwest.net
Wed Sep 7 00:31:36 CEST 2005


class Shell:

	def __init__(ghost):
		pass

	def __repr__(ghost):
		return 'What famous Japanese cartoon?'

OK that was easy.  So how about:

class Shell (object):

	def __init__(ghost):
		pass

	def __repr__(ghost):
		return 'What famous Japanimation?'

Hint:  think "new-style class."

Kirby





More information about the Edu-sig mailing list