fork download
  1. import turtle
  2. a = turtle.Pen()
  3. b = turtle.Pen()
  4. c = turtle.Pen()
  5. d = turtle.Pen()
  6. b.left(90)
  7. c.left(180)
  8. d.left(270)
  9. x = 20
  10. y = 90
  11.  
  12. while True:
  13. x *= 2
  14. for i in (a, b, c, d):
  15. i.forward(x)
  16. i.right(y)
Runtime error #stdin #stdout #stderr 0.06s 79424KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 2, in <module>
  File "/usr/lib/python3.5/turtle.py", line 3812, in __init__
    Turtle._screen = Screen()
  File "/usr/lib/python3.5/turtle.py", line 3662, in Screen
    Turtle._screen = _Screen()
  File "/usr/lib/python3.5/turtle.py", line 3678, in __init__
    _Screen._root = self._root = _Root()
  File "/usr/lib/python3.5/turtle.py", line 434, in __init__
    TK.Tk.__init__(self)
  File "/usr/lib/python3.5/tkinter/__init__.py", line 1880, in __init__
    self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: no display name and no $DISPLAY environment variable