I am a beginner, I have created my own ide to run python code but I am getting some error when run input() code
Enter any numberTraceback (most recent call last):
File "C:\Users\USER\Downloads\N1.py", line 1, in <module>
a = input("Enter any number")
EOFError: EOF when reading a line
my run python script function is below
command = f"python {self.file}"
run_file = subprocess.Popen(command, stdin=subprocess.PIPE,stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
Output, error = run_file.communicate()
self.output.insert(END,f"{self.file}>>\n")
self.output.insert(END,Output)
self.output.insert(END,error)