I have written a turtle program in python, but there are two problems.
I can't really solve the speed problem, but the freezing can be prevented by using turtle. done() at end of file, thanks
turtle. done()