Problem description:
Replit with turtle is not working. the output window briefly shows the turtle moving and then screen goes black.
Expected behavior:
Move the turtle and after moving the output screen stays on to see result of turtle moving
Actual behavior:
Turtle moves and then screen goes black as soon as it’s done moving
Steps to reproduce:
I have a classroom of students that are all having the same issue
Bug appears at this link:
Browser:
OS:
Device (Android, iOS, NA leave blank):
Desktop app version (Avatar menu->“Version”) or NA:
Plan (Free, Hacker, Pro Plan):
If you have your students add the line input()
to the end of their program, it’ll keep the screen open for them.
2 Likes
Thanks for the prompt response. I have temporarily used input() for my students, curious if there’s any sort of fix on the way?
No, there is no permanent workaround as of right now. Replit made a change to their console/output windows, so now programs immediately stop and disappear after done running. Putting input()
or something that keeps the program indefinitely running should work.
3 Likes
Hi @JaredMerrill !
You can use the Turtle function:
turtle.mainloop()
Put this line at the end of your program.
Hope this helps!
1 Like
That does help. Thank you very much!
system
Closed
November 2, 2023, 6:30pm
7
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.