Why \ is used at the end of print statement in python?
<p>Consider the code:</p>

<pre><code>firstName = raw_input("Your fist Name: ")
lastName = raw_input("Your last Name: ")
print "Hello %s, May I call you" \
"Mr. %s?" % (firstName,lastName)
</code></pre>

<p>In line 3, what is the use of <code>\</code> ?</p>

<p>The <code>\</code> character is used to break up long lines so they're easier to read and manage. The third and fourth lines could have been written as a single line without the <code>\</code> instead: </p>

<pre><code>print "Hello %s, May I call youMr. %s?" % (firstName,lastName)
</code></pre>

<p>(note there is no space between "you" and "Mr." in the original post either)</p>

python syntax