writes:
> What about using the append function to remove duplicate outputs entered on
> or thereafter line no. 9, i.e.,
As far as I know, "append" does not have intelligence in this respect.
Thus, if you need intelligence, your program must implement it.
In cases like yours, I use
a) added
: dieter
Sent: Thursday, July 30, 2015 11:22 PM
To: python-list@python.org
writes:
> ...
> Why is open not defined in the following code:NameError: name 'open' is not
> defined
>
> Code reads as follows:
>
> fname = raw_input("Enter file name: &q
writes:
> ...
> Why is open not defined in the following code:NameError: name 'open' is not
> defined
>
> Code reads as follows:
>
> fname = raw_input("Enter file name: ")
> if len(fname) < 1 : fname = "mbox-short.txt"
> fh = open(fname
Hi Everyone:
Why is open not defined in the following code:NameError: name 'open' is not
defined
Code reads as follows:
fname = raw_input("Enter file name: ")
if len(fname) < 1 : fname = "mbox-short.txt"
fh = open(fname)
count = 0
for line