Prompt for Name without any Variables
<p>How would go about writing this program without any variables? It's super simple exercise from the book "57 Programming Exercises" but other than using importing sys and using the command line argv I don't see how to go about it. I think the intent is for it not to use sys.argv. Thank you.</p>

<pre><code>inp = raw_input("What is your name? ")
print "Hello,",inp,"nice to meet you!"
</code></pre>

<p>This will do the trick:</p>

<pre><code> print "Hello, {} nice to meet you!".format(raw_input("What is your name? "))
</code></pre>

<p><a href="https://docs.python.org/2/library/string.html#format-string-syntax" rel="nofollow">format</a> is just a way of inserting arguments in a string, similar to</p>

<pre><code>print "Hello, " + raw_input("what is your name? ") + " nice to meet you"
</code></pre>

python