if...else on the same line?

Michael Hudson mwh at python.net
Fri Sep 27 12:21:39 CEST 2002


David Garamond <davegaramond at icqmail.com> writes:

> i'm sorry for this terrorizingly basic question, but is it possible at
> all to write an if ... else statement on a single line in python?

No.

easy-ones-are-the-quickest-ly y'rs
M.

-- 
  > Emacs is a fashion statement.
  No, Gnus is a fashion statement.  Emacs is clothing.  Everyone 
  else is running around naked.
        -- Karl Kleinpaste & Jonadab the Unsightly One, gnu.emacs.gnus



More information about the Python-list mailing list