Python-Quizzes | Python String Quiz | Question 14

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
Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.