[Chicago] Silliness: was RE: newbie says HI; needs help

Robare, Phil PRobare at chx.com
Fri Jan 20 18:40:59 CET 2006


(Come on people, lets take this to another topic.  This won't help a
student learn if-statements.  It is fun however.) 

At least it's not 

 stock = strcmp(texture,"flakey")?1:strcmp(texture,"caked")?1:2;

Now THAT proves C's a _serious_ programming language!

Phil
________________________________

	From: chicago-bounces at python.org
[mailto:chicago-bounces at python.org] On Behalf Of Jess Balint
	Sent: Friday, January 20, 2006 11:26 AM
	To: 'The Chicago Python Users Group'
	Subject: Re: [Chicago] newbie says HI; needs help
	
	

	From: chicago-bounces at python.org
[mailto:chicago-bounces at python.org] On Behalf Of Brian Ray
	

	On Jan 20, 2006, at 11:06 AM, Ian Bicking wrote:


	In Python 2.5 you'll be able to do:

	1 if texture in ['flakey', 'caked'] else 2

	What do you call this?

	Perl.



More information about the Chicago mailing list