<div dir="ltr"><br><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 13, 2015 at 10:15 AM, Marco Beri <span dir="ltr"><<a href="mailto:marcoberi@gmail.com" target="_blank">marcoberi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2015-02-13 9:50 GMT+01:00 Diego Barrera <span dir="ltr"><<a href="mailto:diegonebarrera@yahoo.it" target="_blank">diegonebarrera@yahoo.it</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">|print sum([xfor xin xrange(3,1000,3)if not x %3 or not x %5])|</blockquote><div><br></div><div>Ahia.... ecco... sei già drogato :-)</div><div><br></div><div>Lancio una sfida qui: chi riesce a risolvere il numero 16 in meno caratteri?</div><div><br></div><div><a href="https://projecteuler.net/problem=16" target="_blank">https://projecteuler.net/problem=16</a><br></div><div><br></div><div>Ciao.<span class=""><font color="#888888"><br>Marco.</font></span></div></div></div></div></blockquote><div><br></div><div>Io dico 33<br>>>> sum(int(c) for c in "%d"%2**1000)<br>1366<br><br>>>> 'sum(int(c) for c in "%d"%2**1000)'.__len__()<br>33<br><br></div><div> Stefano<br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class=""><font color="#888888"><div><br></div></font></span></div><span class=""><font color="#888888">-- <br><div><div dir="ltr"><div><div><a href="http://beri.it/" target="_blank">http://beri.it/</a> - Un blog</div><div><a href="http://beri.it/i-miei-libri/" target="_blank">http://beri.it/i-miei-libri/</a> - Qualche libro</div><div><span style="font-size:small"><a href="http://beri.it/articoli/" target="_blank">http://beri.it/articoli/</a> - Qualche articolo</span></div></div></div></div>
</font></span></div></div>
<br>_______________________________________________<br>
Python mailing list<br>
<a href="mailto:Python@lists.python.it">Python@lists.python.it</a><br>
<a href="http://lists.python.it/mailman/listinfo/python" target="_blank">http://lists.python.it/mailman/listinfo/python</a><br>
<br></blockquote></div><br></div></div>