This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import with_statement | |
class Foo: | |
pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def f(var): | |
print "%s" % (var) | |
def g(var): | |
pass |
NewerOlder