adplus-dvertising
frame-decoration

Question

What is the output when following code is executed ?
>>>print r"\nhello"

a.

a new line and hello

b.

\nhello

c.

the letter r and then hello

d.

error

Posted under Python

Answer: (b).\nhello

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output when following code is executed ?