I am learning Python and need to use use IDLE, but I am having a
problem. When I open a new window in IDLE and write my code, all is
well. The coloring works and is very helpful. However, when I save the
file I am working on, all the color disappears. And what is more
frustrating is that when I ope
In the book I am using, they give the following function as an
example:
def copyFile(oldFile, newFile):
f1 = open(oldFile, 'r')
f2 = open(newFile, 'w')
while True:
text = f1.read(50)
if text == "":
break
f2.write(text)
f1.close()
f2.close()
I am trying to learn NLP with Python and am getting the following
error when trying to do an import statement:
>>> import nltk
>>> import re
>>> from nltk_lite.utilities import re_show
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named nltk_lite.utilities
I hav
On Sep 7, 5:40 pm, "newb.py" wrote:
> I am trying to learn NLP with Python and am getting the following
> error when trying to do an import statement:
>
> >>> import nltk
> >>> import re
> >>> from nltk_lite.utilities import re_show
>
&g
On Sep 7, 6:55 pm, Ned Deily wrote:
> In article
> <8119a298-4660-4680-b460-0924c9baa...@e4g2000prn.googlegroups.com>,
>
> "newb.py" wrote:
> > On Sep 7, 5:40 pm, "newb.py" wrote:
> > > I am trying to learn NLP with Python and am getting