Magnus Lie Hetland
mlh at idi.ntnu.no
Sun Mar 19 18:31:43 CET 2000
Moshe Zadka <moshez at math.huji.ac.il> wrote in message
news:Pine.GSO.4.10.10003171839240.12462-100000 at sundial...
> On Fri, 17 Mar 2000, JJ wrote:
> > I'm a C/C++/Java programmer and wonder how to make "code blocks" in
> > Please translate this to Python:
> while notDone:
> int chip = this.getNumberOfSomething()
> if chip == 0:
> print "Tjohoo"
> print "Oh no!"
> With the customary 1.5 factor of LOCs reduce promised <wink>
Actually - if you remove the illegal "int", then the reduction would be
even greater, if you don't count the necessary whitespace which you
have omittet ;)
Hetland magnus @ hetland . org
More information about the Python-list