Python turtle window closes immediately after running from desktop
I have recently coded 'snake' in python. I can run it from my IDE perfectly fine. However, on my desktop, I right click the file and 'open with python3.9' The window pops up but then immediatley closes. I've tried adding 'input()' at the end but it doesn't work. Any suggestions?