Discussion :: Python MCQs
-
What is the output when following code is executed ?print r"\nhello"The output is
Answer : Option B
Explanation :
When prefixed with the letter 'r' or 'R' a string literal becomes a raw string and the escape sequences such as \n are not converted.
Be The First To Comment