[Tutor] Newbie: New install of Python 2.1: Syntax Error
Frank Peavy
fpeavy@pop.net
Tue, 27 Nov 2001 18:31:24 -0800
Using IDLE
Win 98SE installation
I keep getting a syntax error when I try to run the "hello world" program
listed at the bottom.
In looking through the TUTOR archives I noticed a solution related to
sys.path that I tried, thinking
that the problems may be related(see below). I thought the problem might be
related to a PATH problem, but was unsure.
********************************************************
>>> python hello1.py
SyntaxError: invalid syntax
>>> import sys
>>> sys.path()
Traceback (most recent call last):
File "<pyshell#4>", line 1, in ?
sys.path()
TypeError: object of type 'list' is not callable
********************************************************
My py below
********************************************************
# File: hello1.py
from Tkinter import *
root = Tk()
w = Label(root, text="Hello, world!")
w.pack()
root.mainloop()