r/pythonhelp • u/Muskratbest2 • Jan 14 '22
Script that Automatically provides input() in terminal.
File A is designed to automate a process and has a for loop that calls file B.
File B has an input() function, and when it it called it halts the for loop until a user input is provided.
Is there a way where I can automatically fill the input within the terminal?
(Note: I am unable to alter file B)
3
Upvotes
1
u/Goobyalus Jan 14 '22
How is file A calling file B here?
And you can format code on reddit by leaving blank spaces before and after the code block, and indendint each line of the code block be an additional 4 spaces.