<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;">> It'll work on lists and tuples, for simple examples. But beware that <br>> when you iterate through strings, the individual characters are also <br>> strings, and this function will fail with an error like:<br>> RuntimeError: maximum recursion depth exceeded<br><br>Oh, good catch Dave.<br><br>So you'd want to add an explicit check for a string.<br>And in fact you probably don't want to "flatten" a string into <br>individual characters anyway!<br><br>Alan G.<br></div></div>
</div></body></html>