Skip to content

Instantly share code, notes, and snippets.

class QuestionNode:
def __init__(self, question):
self.question = question
self.yes_answer_node = None
self.no_answer_node = None
class AnimalNode:
def __init__(self, animal, parent_question_node):
self.animal = animal
self.parent_question_node = parent_question_node
from __future__ import with_statement
class Foo:
pass
def f(var):
print "%s" % (var)
def g(var):
pass