On Feb 13, 8:31 pm, 7stud <[EMAIL PROTECTED]> wrote:
> On Feb 13, 6:47 pm, Robert <[EMAIL PROTECTED]> wrote:
>
>
>
> > I would like to count lines in a file using the fileinput module and I
> > am getting an unusual output.
> > ---
On Feb 13, 6:47 pm, Robert <[EMAIL PROTECTED]> wrote:
> I would like to count lines in a file using the fileinput module and I
> am getting an unusual output.
> ---
> ---
> #!/usr/bin/python
> import fileinput
>
> # cycle thro
En Wed, 13 Feb 2008 23:47:11 -0200, Robert <[EMAIL PROTECTED]>
escribió:
> I would like to count lines in a file using the fileinput module and I
> am getting an unusual output.
> --
> #!/usr/bin/python
> import fileinpu
I would like to count lines in a file using the fileinput module and I
am getting an unusual output.
--
#!/usr/bin/python
import fileinput
# cycle through files
for line in fileinput.input():
if (fileinput.isfirstline()