web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

Python script in PAD

(0) ShareShare
ReportReport
Posted on by 2

Hi,

 

I am using run power shell script activity for run python code. When i use input method in python script i am getting error that - EOFError: EOF when reading a line.

Here is my code,

x = input("Enter the Number1 :")
y = input("Enter the Number2 :")

sum = int(x) + int(y)

print("The sum is: ", sum)

 Any Suggestions..? 

Thanks in advance.

I have the same question (0)
  • Sundeep_Malik Profile Picture
    6,501 on at

    Hey @Vijaylaxmi_teli 

    I dont think this is possible, instead just use input variables of the power automate desktop. And directly input them in the script. Has it worked for you before? Because I see no console here to input the inputs, like there is in python. 

     

    Just add two new variables by clicking the plus icon. And pass both the variables in your script.

    Sundeep_Malik_2-1663228251199.png

     

    Sundeep_Malik_0-1663228089980.png

    Full Flow:

    Sundeep_Malik_1-1663228180414.png

    While running the flow, you will get the console to input. 

    Sundeep_Malik_3-1663228432875.png

     

     

    I hope this helps. 

  • VJR Profile Picture
    7,635 on at

    @Vijaylaxmi_teli , if you want to ask the user for Inputs via Power Automate Desktop then use the "Display custom form" action.

  • VJR Profile Picture
    7,635 on at

    ..Or you can also use the "Display input dialog"

  • Vijaylaxmi_teli Profile Picture
    2 on at

    Thank you for the reply @Sundeep_Malik . This is an example I was trying. But the requirement is different and python script is too lengthy. I cannot use run python script activity.   

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 378

#2
Valantis Profile Picture

Valantis 329

#3
David_MA Profile Picture

David_MA 283 Super User 2026 Season 1

Last 30 days Overall leaderboard