Adding a string with spaces to a stack
<p>I'm working on developing a mini-language in Python (not really, just a few commands for a personal project).</p>

<p>Here's the code:</p>

<pre><code>class FlashCard:
    def __init__(self):
        self.commands = {'addQuestion':self.addQuestion}
        self.stack = []
        self.questions = {}


    def addQuestion(self):
        question = self.stack.pop()
        answer = input(question)


    def interpret(self,expression):
        for token in expression.split():
            if token in self.commands:
                operator = self.commands[token]
                operator()
            else:
                self.stack.append(token)

i = FlashCard()
i.interpret('testing this addQuestion')
</code></pre>

<p>The interpret function will only pull the last word (this) from the string. Is there a way to make it pull the entire line?</p>

<p>Thank you!</p>
