Re: Getting started with IDLE and Python - no highlighting and no execution

2012-08-05 Thread PeterSo
On Aug 5, 7:09 pm, Rotwang wrote: > On 06/08/2012 00:46, PeterSo wrote: > > > > > > > > > > > I am just starting to learn Python, and I like to use the editor > > instead of the interactive shell. So I wrote the following little > > program in IDLE

Getting started with IDLE and Python - no highlighting and no execution

2012-08-05 Thread PeterSo
I am just starting to learn Python, and I like to use the editor instead of the interactive shell. So I wrote the following little program in IDLE # calculating the mean data1=[49, 66, 24, 98, 37, 64, 98, 27, 56, 93, 68, 78, 22, 25, 11] def mean(data): return sum(data)/len(data) mean(da