1
\$\begingroup\$

I've often come across answers like this:

Python3, 40 bytes

i=0
while i>10:
    i+=1
    print(str(i))

When you could golf it down to

Python3, 33 bytes

for i in range(10): print(str(i))

Should you edit it, or leave it how it is and leave a helpful comment?

\$\endgroup\$
1
  • 4
    \$\begingroup\$ Leave a comment, don't edit. \$\endgroup\$
    – Alex A.
    Feb 4, 2016 at 21:02

0

Browse other questions tagged .