To run a Python script in Node RED

I am a new user of hassio and do not know much about programming.
I am using hassio with docker-compose.
I would like to create a program that runs a certain python script using exec when a certain smart plug runs in node red (addon in hassio).
However, I can’t run the python script I created because I don’t know the Node RED directory.
Where should I put the python script?

Please tell me more if you know about it.

Were you able to install python in the container first?

Oops!

It’s embarrassing, but I hadn’t installed python in the container.

I’m on the road, so I’ll try to install python in a container when I get home.

Thank you.

Just out of interest. What do you need a python script for? Till now, I was able to do all the stuff I needed directly in NR