May-08-2018, 05:52 PM
Hello Everybody,
This is my first script, and I am looking for advice...
I am trying to get the variable "response" to populate in another variable called body.
You can see here what I'm trying to do. I tried the following
Any help would be appreciated.
This is my first script, and I am looking for advice...
I am trying to get the variable "response" to populate in another variable called body.
You can see here what I'm trying to do. I tried the following
def get_hostname(): response = raw_input("Please enter your name: ") body = '[{"hostname": "response"}]'...and...
def get_hostname(): response = raw_input("Please enter your name: ") body = '[{"hostname": "print(response)"}]'And I tried other variations but I can't seem to find the right way to do this.
Any help would be appreciated.