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
  • 2
    \$\begingroup\$ I don't believe you need the parentheses around the 1. while 1:print(0) should work just fine. \$\endgroup\$ Commented Feb 14, 2019 at 20:30
  • \$\begingroup\$ You can also save a byte on the print by using python 2 \$\endgroup\$ Commented Feb 14, 2019 at 21:34
  • 1
    \$\begingroup\$ you don't even need the 0 since python prints a newline \$\endgroup\$ Commented Feb 14, 2019 at 22:11
  • \$\begingroup\$ You are right @Joking. New line is invisible output. \$\endgroup\$ Commented Feb 14, 2019 at 22:14
  • \$\begingroup\$ while 1:print() would print a newline \$\endgroup\$ Commented Mar 3, 2019 at 17:45