[Tutor] a quick Q: how to use for loop to read a series of files with .doc end

Alan Gauld alan.gauld at btinternet.com
Wed Oct 5 01:21:00 CEST 2011


On 04/10/11 17:38, lina wrote:
> For file:
>
> aaEbb
> aEEbb
> EaEbb
> EaEbE
>
> the expected output is
>
> 2 1 0 1

I expected

2 1 4 0 1

> In the first column there is 2 E, so the output is 2 E, second column is
> 1 E.

But the 3rd is all E so why miss out the 4?

I'm still confused - and I thought I was getting it!

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/



More information about the Tutor mailing list