'Screen w/ turtle in google colab
How do you fix this? I just need input of some kind for turtle. Code:
from ColabTurtle.Turtle import *
initializeTurtle()
#screen=turtle.screen ?
def frd():
turtle.fd(10)
screen.onkeypress(w, frd)
screen.listen
Error:
NameError Traceback (most recent call last)
<ipython-input-21-479f5ebc79f2> in <module>()
. 4 def frd():
. 5 turtle.fd(10)
---> 6 screen.onkeypress(w, frd)
. 7 screen.listen
NameError: name 'screen' is not defined
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|