LPTHW EX25 - not running normally in powershell
<p>I am following zed shaw's book LPTHW and stuck on ex25. I have typed the code accordingly without errors. If I understand it right he has asked to run it first normal in powershell but when I put the command:
    C:/mystuff> python ex25.py , </p>

<p>It enters to next line without any output. </p>

<p>I tried importing ex25 in python interpreter this is the error i get:</p>

<pre><code>&gt;&gt;import ex25
&gt;&gt;sentence = "All good things come to those who wait."
&gt;&gt;words = ex25.break_words(sentence)
</code></pre>

<p>After this I get an error:</p>

<pre><code>Traceback &lt;most recent call last&gt;:
file stdin in line 1 &lt;module&gt;
file ex25.py line 3 in break_words
words = stuff.split(' ')
Value error: empty separator. 
</code></pre>

<p>what am I doing wrong? Also i experimented for over half hour now trying different solutions , make it work. I guess the powershell wont respond because the program is basically a bunch of functions , without any input. But in the interpreter we do give an input of a sentence , then why the error? Doing my head-in.</p>

<p>the code link for LPTHW: <a href="http://learnpythonthehardway.org/book/ex25.html" rel="nofollow">http://learnpythonthehardway.org/book/ex25.html</a>    </p>