Computer Science
Which of the following statement prints the shown output below?
hello\example\test.txt
- print("hello\example\test.txt")
- print("hello\\example\\test.txt")
- print("hello\"example\"test.txt")
- print("hello"\example"\test.txt")
Python Funda
4 Likes
Answer
print("hello\\example\\test.txt")
Reason — Escape sequence (\\) is used for Backslash (\).
Answered By
1 Like
Related Questions
Which among the following list of operators has the highest precedence?
+, -, **, %, /, <<, >>, |
- <<, >>
- **
- I
- %
Which of the following expressions results in an error?
- float('12')
- int('12')
- float('12.5')
- int('12.5')
Which value type does input() return ?
- Boolean
- String
- Int
- Float
Which two operators can be used on numeric values in Python?
- @
- %
- +
- #