Why not allow empty code blocks?

BartC bc at freeuk.com
Sat Jul 30 08:39:56 EDT 2016


On 30/07/2016 13:22, Chris Angelico wrote:

>>>> print(*range(10), sep='\n')
> 0
> 1
> 2
> 3
> 4
> 5
> 6
> 7
> 8
> 9
>>>>
>
> Beat that, print statement.

for i in range(10): print i

Same number of characters, but a lot less punctuation!

-- 
Bartc




More information about the Python-list mailing list