[Tutor] Problem with "elif"
dman
dsh8290@rit.edu
Sun, 25 Nov 2001 22:20:28 -0500
On Sun, Nov 25, 2001 at 06:04:13PM -0500, Andrei Kulakov wrote:
| On Sun, Nov 25, 2001 at 10:52:11PM +0000, alan.gauld@bt.com wrote:
| > > >>> y = 1900
| > > >>> leap = "no"
| > > >>> if y % 400 == 0 :
| > > leap = "yes"
| > > elif y % 100 == 0 :
| > >
| > > IndentationError: unindent does not match any outer
| > > indentation level (line 3)
| >
| > This looks like you are using IDLE - coz there are no ... prompts.
|
| I never used it, but this sucks.. *Especially* cause it'd be really easy
| to fix.
Yeah!
Try running :
import sys
sys.ps2 = '... '
Then try entering that 'if' statement. You can probably search
through the IDLE sources (I would use 'grep' but if you are on windows
without cygwin, good luck) to find "sys.ps2" and fix the prompt.
-D
--
Even youths grow tired and weary,
and young men stumble and fall;
but those who hope in the Lord
will renew their strength.
They will soar on wings like eagles;
they will run and not grow weary,
they will walk and not be faint.
Isaiah 40:31