Talk:Python (programming language): Difference between revisions

Content deleted Content added
another alternative
Line 149:
is '''not''' equivalent to:
def factorial(x): if x == 0: return 1 else: return x * factorial(x-1)
 
 
:Just to present an alternative for consideration, what about presenting both C examples? Show the single-line version, show the braced version, then compare them with the Python version.
 
:Note that I don't necessarily advocate this alternative, I just suggest it's one of our options. After the point that Fubar brought up, I think it's probably best to show two examples formatted according to best practice for the respective language, even if that causes confusion for the occasional reader who (sorry, anon) doesn't read the article to understand the difference that the examples demonstrate. -- [[User:Antaeus Feldspar|Antaeus Feldspar]] 17:04, 22 Sep 2004 (UTC)