On Wed, Oct 5, 2011 at 12:26 AM, Dave Angel wrote:
> On 10/04/2011 12:01 PM, bob gailer wrote:
>
>> On 10/4/2011 10:07 AM, lina wrote:
>>
>>> want to do a statistic of the concurrence of E,
>>>
>>>namely,
>>>how many times the E showed up,
>>>
>>>so the first column is 1, second colum
On 10/04/2011 12:01 PM, bob gailer wrote:
On 10/4/2011 10:07 AM, lina wrote:
want to do a statistic of the concurrence of E,
namely,
how many times the E showed up,
so the first column is 1, second column and then following.
Thanks,
I have one, which showed something like
On 10/4/2011 10:07 AM, lina wrote:
want to do a statistic of the concurrence of E,
namely,
how many times the E showed up,
so the first column is 1, second column and then following.
Thanks,
I have one, which showed something like:
tokens=['E']
result=[]
fi
^
> SyntaxError: invalid syntax
>
I made a mistake, it used python3
I wonder: can someone help me anatomy this one to help me understand,
>
>
>
>>
>> Sent from my Verizon Wireless BlackBerry
>>
>> -Original Message-
>> From:
s:
result.append({t:line.count(t) for t in tokens})
^
SyntaxError: invalid syntax
>
> Sent from my Verizon Wireless BlackBerry
>
> -Original Message-
> From: lina
> Sender: tutor-bounces+eire1130=gmail@python.org
>
I don't understand what you want
Mayybe give expected output as well
Sent from my Verizon Wireless BlackBerry
-Original Message-
From: lina
Sender: tutor-bounces+eire1130=gmail@python.org
Date: Tue, 4 Oct 2011 19:44:02
To: tutor
Subject: [Tutor] arrary st
Hi,
For a file with
aaE
aEE
EaE
I want to statically get the concurence of E,
such as for coloumn 1,
I wish it print a[0]=1, a[1]=1,a[2]=3.
Thanks for suggestions,
--
Best Regards,
lina
___
Tutor maillist - Tutor@python.org
To unsubscribe or ch