<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3492" name=GENERATOR></HEAD>
<BODY><!-- Converted from text/plain format -->
<P><FONT size=2><FONT face=Arial>Hi,<BR></FONT></FONT><FONT size=2><FONT 
face=Arial><BR>Wanting to print the correct plural after numbers, I did the 
following:<BR><BR><FONT face=Courier>for num in 
range(1,4):<BR>    string_ = "%d event%s" % (num,lambda num: num 
> 1 and "s" or "")<BR>    print string_<BR></FONT><BR>However, 
instead of getting the expected output:<BR><BR><FONT face=Courier>1 event<BR>2 
events<BR>3 events</FONT><BR><BR>I get:<BR><BR><FONT face=Courier>1 
event<function <lambda> at 0x00AFE670><BR>2 event<function 
<lambda> at 0x00AFE670><BR>3 event<function <lambda> at 
0x00AFE6B0></FONT><BR><BR>Reading the first results of </FONT><A 
href="http://www.google.com/search?q=python+lambda"><FONT 
face=Arial>http://www.google.com/search?q=python+lambda</FONT></A><FONT 
face=Arial> didn't enlighten me.<BR><BR>Could you point to a URL which could set 
me on the right path to get the expected output 
?<BR><BR>Thanks,<BR>Ron.</FONT></FONT><FONT face=Arial> 
</FONT></P></BODY></HTML>