Question
What is the output when following code is executed ?print r"\nhello"The output is
Answer: Option B
Was this answer helpful ?
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.
Was this answer helpful ?
Submit Solution