Newbie Question.. What is the replacement for the ELSE command?.

Maan Hamze mmhamze at
Sat Sep 15 00:14:41 CEST 2001

Can you give an exact example of Python code with 'else' that is not
working?  Please include all indentations with the code you are using.
something that works, say for example:

if x==1:
  print 'happy'
  print 'sad'


"Cable" <cable40 at> wrote in message
news:qiv4qtkbhi5tgeb2knf14m4r5ikh9jesf1 at
> I am trying to teach myself Python.  All the online tutorials, have
> examples with the else command.  I cant get it to work is there a
> replacement?
> Thanks.

More information about the Python-list mailing list