Python indentation
Jacek Generowicz
jacek.generowicz at cern.ch
Wed Jul 7 11:05:51 EDT 2004
"Sateesh" <ext-sateesh.kavuri at nokia.com> writes:
> Hi,
> I am a beginner in Python, and am wondering what is it about the indentation
> in Python, without which python scripts do not work properly.
> Why can't the indentation not so strict so as to give better freedom to the
> user?
> Is there any plausible reason behind this?
def ask(lang, noise):
print """I am a beginner in %s, and am wondering what is it about the %s in
%s, without which %s programs do not work properly.
Why can't the %s not so strict so as to give better freedom to
the user?
Is there any plausible reason behind this?""" % (lang, noise, lang, lang, noise)
print
for l,n in [['C', '{,} and ;'],
['C++', '{,} and ;'],
['Java', '{,} and ;'],
['Pascal', 'begin and end'],
['Lisp', '( and )'],
['Perl', '!@#*$&!@$#']]:
ask(l,n)
keywords: parody, irony
More information about the Python-list
mailing list