save and execute python code

dike <[email protected]> Fri, 26 Feb 2021 15:50:22 +0000
Newsgroups gmane.editors.nano.general
Message-ID <G0BjsHk9LBgzszj0jgaFXJnHuQXuxovdqoMSyVNbzsKZrwJjST1jVkimSUEvu8NOBbWxbVS_Zu6UsZ6zQzc6a6sIPCnnzx4V6G7h7-YbCH0=@protonmail.com>
hi,
I love nano, but I want to press C-enter.

Then i want nano to run savefile, and
$./python %file%

where %file% is the current filename?

I don't want to switch windows repeatedly just to run a file.