adplus-dvertising
frame-decoration

Question

Which of the following statement prints hello\example\test.txt ?

a.

print(“hello\example\test.txt”)

b.

print(“hello\\example\\test.txt”)

c.

print(“hello\”example\”test.txt”)

d.

print(“hello”\example”\test.txt”)

Posted under Python

Answer: (b).print(“hello\\example\\test.txt”)

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following statement prints hello\example\test.txt ?