Python indentation

bruno modulix onurb at xiludom.gro
Wed Jul 7 22:28:06 CEST 2004


Jacek Generowicz a écrit :
> "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', '!@#*$&!@$#/\'],
               ['PHP', '$ and {,} and ;']]:
>     ask(l,n)
> 
> keywords: parody, irony

Keyboard !

(5 minutes later)

Is it GPL'ed ?-)

Bruno



More information about the Python-list mailing list