[Tutor] What’s the differences between these two pieces of code ?
Chris Hare
chare at labr.net
Fri Jul 13 19:54:13 CEST 2012
On Jul 6, 2012, at 11:59 PM, redstone-cold wrote:
> What’s the differences between these two pieces of code ?
> (1)
> for i in range(1, 7):
> print(2 * i, end=' ')
>
>
> (2)
> for i in range(1, 7):
> print(2 * i, end=' ')
> print()
>
I think they are exactly the same, except the second example will print an extra "blank" line before exiting
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120713/7c61f931/attachment.html>
More information about the Tutor
mailing list