Power Automate online browser version does not have Python script connector, Thus you need to either run your python script in Azure Automation account or in Azure Functions and call it inside Power Automate flow. But Power Automate Desktop version has a connector to run the python script, Refer below:-Sample Python script:- More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.