Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 1
    \$\begingroup\$ You can shorten it to 15 by not printing a string and removing the brackets in the while... while 1:print 1 \$\endgroup\$ Commented Nov 10, 2013 at 21:03
  • 6
    \$\begingroup\$ Or 13 characters: while 1:print produces "infinite output" composed of newlines. \$\endgroup\$ Commented Nov 10, 2013 at 21:40
  • \$\begingroup\$ How about while 1:1 ? \$\endgroup\$ Commented Apr 28, 2014 at 18:18
  • \$\begingroup\$ which @KaranGoel found below as well \$\endgroup\$ Commented Apr 28, 2014 at 18:23
  • \$\begingroup\$ @Willem Absolutely wrong. Literals are not allowed by themselves on executed programs. \$\endgroup\$ Commented Apr 12, 2016 at 13:10