Help needed to solve this "NameError"
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Sun Jun 24 22:42:11 EDT 2007
En Sun, 24 Jun 2007 23:17:25 -0300, senthil arasu <senwin30 at gmail.com>
escribió:
> Hi,
> Iam new tp python programming.
>
> Iam getting compiler error when declaring frame instance as local
> variable.
> please find the code
In Python, indentation (number of spaces at start of lines) is important.
Verify your code against the original source (book, tutorial, wherever you
got it).
Both "def" lines should be indented 1 level (let's say, 4 spaces). All
lines between those two, should be indented 2 levels (8 spaces), same
indentation for the "hi there!" line. All other lines should be at the
left margin.
--
Gabriel Genellina
More information about the Python-list
mailing list