Python file is simple text file extension of which is changed to .py instead of .txt
Depends on what OS you’re using. If win then make sure you see file extensions in Explorer and rename “name.txt” file to “name.py”.
If you have notepad with file opened click Save As and make sure below on dropdown you have “All types”, then write name.py and save.
Use Copy to Clipboard button on pasteall page - that ensures you have correctly copied text from page. Select and copy introduces spaces in front of lines which cause python errors later.