Related Articles

Related Articles

Python-Quizzes | Python String Quiz | Question 14
  • Last Updated : 18 Sep, 2020

Question 14: What is the output of the following program?

filter_none

edit
close

play_arrow

link
brightness_4
code

print (r'C:\\inside C directory')

chevron_right


(A) C:\inside C directory
(B) C:\\inside C directory
(C) inside C directory
(D) Error


Answer: (B)

Explanation: It is a raw string that will treat backslash as a normal character.

Quiz of this Question

My Personal Notes arrow_drop_up
Recommended Articles
Page :