How do you save your code then save it in a file on your desktop?
Click the three dots on the left panel. Then click "Download as zip"
After you've found the file, double click the .zip and your files should open!
Or you could just copy paste your code into a python IDLE