One fix is addng input() as last line of code. The other is adding screen.mainloop() as the last line of your code (as long as you keep the original screen instantiation line) from the default python with turtle code.
Watch video Replit Python Turtle Bug where GUI Screen disappears after running the file online without registration, duration hours minute second in high quality. This video was added by user Homawccc 06 November 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 350 once and liked it 7 people.