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

Maan Hamze mmhamze at pleiades.net
Fri Sep 14 18:14:41 EDT 2001


Cable
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'
else:
  print 'sad'

Maan

"Cable" <cable40 at hotmail.com> wrote in message
news:qiv4qtkbhi5tgeb2knf14m4r5ikh9jesf1 at 4ax.com...
> 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