Passing user input into a file

Hi all,

I’m trying to pass user input into a python file. I have 3 input dialogs with variables assigned to the output. How would I get the value of the variables and paste them into specific spots within the file?