Code basics

Moshe Zadka moshez at math.huji.ac.il
Fri Mar 17 11:41:01 EST 2000


On Fri, 17 Mar 2000, JJ wrote:

> I'm a C/C++/Java programmer and wonder how to make "code blocks" in Python.
> 
> Please translate this to Python:

while notDone:
	int chip = this.getNumberOfSomething()
	if chip == 0:
		print "Tjohoo"
	else:
		print "Oh no!"

With the customary 1.5 factor of LOCs reduce promised <wink>
--
Moshe Zadka <mzadka at geocities.com>. 
http://www.oreilly.com/news/prescod_0300.html
http://www.linux.org.il -- we put the penguin in .com





More information about the Python-list mailing list