install 3.1

Chris Rebert clp2 at rebertia.com
Thu Sep 30 12:39:08 EDT 2010


> On Thu, Sep 30, 2010 at 4:16 PM, Chris Rebert <clp2 at rebertia.com> wrote:
>> On Thu, Sep 30, 2010 at 2:02 AM, roronron <rbrown780 at gmail.com> wrote:
>> > My python installed but the gui gives me syntax error on any code I type
>> > or paste in. Newbie needs help.
>>
>> Post the full, exact text of the error message.
>> See also: http://www.catb.org/esr/faqs/smart-questions.html

On Thu, Sep 30, 2010 at 2:57 AM, ronald brown <rbrown780 at gmail.com> wrote:
>>>> print 'Hello, world!'
> SyntaxError: invalid syntax
>>>>
> Installed 3 times. Used uninstall in program files and control panel.
> Followed directions on video for 3.1

Read the fine docs:
http://docs.python.org/release/3.0.1/whatsnew/3.0.html#print-is-a-function
Python 3 has several backward-incompatible syntax changes. One of them
is that the print statement was removed and replaced with a print()
function.

Regards,
Chris



More information about the Python-list mailing list