Path: csiph.com!news.fcku.it!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Max_Adamo Newsgroups: it.comp.lang.python Subject: Re: Range ciclo for Date: Sat, 26 Mar 2016 09:10:20 -0000 (UTC) Organization: A noiseless patient Spider Lines: 15 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 26 Mar 2016 09:10:20 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="def1a60fa1fd3e6d9dd9b3c31de5190b"; logging-data="5839"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/foQAKPzGQRUkCwaVdMpbq/YVanPPnr4U=" User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) X-Face: /home/maxadamo/.signature/X-Face Cancel-Lock: sha1:46p/WAdOEtQQ2B6zRqwrC30P3mg= Xref: csiph.com it.comp.lang.python:7630 Il Thu, 24 Mar 2016 23:14:05 +0000, Enrico Bianchi ha scritto: > On 2016-03-08, Max_Adamo wrote: > >> print "{0} {1}".format(i[0], i[1]) > > Giusto per rompere, a meno che non ci si trovi su versioni vetuste di > Python ( < 2.6 ), รจ sempre consigliabile usare "print()" invece che > "print" si ma pepotto (su Komodo) mi dice unnecessary parentheses. L'ideale sarebbe usare sempre: from __future__ import print_function -- Massimiliano Adamo