Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Getting started with IDLE and Python - no highlighting and no execution
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Matthew Barnett  
View profile  
 More options Aug 5 2012, 9:01 pm
Newsgroups: comp.lang.python
From: Matthew Barnett <mrabarn...@mrabarnett.plus.com>
Date: Mon, 06 Aug 2012 02:01:47 +0100
Local: Sun, Aug 5 2012 9:01 pm
Subject: Re: Getting started with IDLE and Python - no highlighting and no execution
On 06/08/2012 01:58, MRAB wrote:

> On 06/08/2012 01:09, 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

>>> # 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(data1)

>>> There is no syntax highlighting and when I ran it F5, I got the
>>> following in the shell window.

>>>   >>> ================================ RESTART
>>> ================================

>>> Any ideas?

>> I don't know what editor you're using or how it works, but I'm guessing
>> that pressing f5 runs what you've written as a script, right? In that
>> case the interpreter doesn't automatically print the result of
>> expressions in the same way that the interactive interpreter does; you
>> didn't tell it to print anything, so it didn't.

> It looks like it's IDLE.

Actually, he does say that it's IDLE at the start.
[snip]

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.