<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt">hmm, maybe you're right.&nbsp; I certainly agree that your example is nested and mine is not.&nbsp; I wonder what the exact description of Kent's solution is?<br><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Luke Paireepinart &lt;rabidpoobear@gmail.com&gt;<br><div><div>I don't think this is a 'nested list comprehension.'</div>
<div>I think that would be </div>
<div>c = 'Hello, World!'</div>
<div>[a for a in [b for b in c]]</div>
<div>in other words:&nbsp;a list comprehension inside of a list comprehension.</div>
<div>&nbsp;</div>
<div>Whereas this example is a single list comprehension because it only builds one list, despite having multiple 'for' loops.</div>
<div>-Luke</div></div>
</div><br></div></div><br>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com </body></html>