On 11/4/2010 7:15 AM Neil Cerutti said...
The handsome ':' terminator of if/elif/if statements allows us to
omit a newline, conserving vertical space. This improves the
readability of certain constructs.

if x: print(x)
elif y: print(y)
else: print()


Analogously, x+=1;y=f(x);return

We don't have to eliminate ':'s.

Emile

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to