Computer Science, asked by bidyarani6782, 9 months ago

Define raw string with example.

Answers

Answered by BAAZ7466
5

HEY DUDE...

.

YOUR ANSWER IS~

raw strings are raw string literals that treat backslash (\) as a literal character. ... But if we mark it as a raw string, it will simply print out the “\n” as a normal character. Python raw strings are useful for writing regular expressions and for using with SQL parsers

.

.

.

.MARK ME AS BRAINLIEST ✧༺♥༻✧

Answered by DeenaMathew
1

Raw string is placed inside the triple quotes (“””….”””) and it doesn't require any escape characters.

1.Raw string provides the capability of writing the string into multiple lines.

2.It is also called as multi-line string.

3.It is a literal (prefixed with an r)which shows that the normal escaping rules have been escaped so that everything is visible.

4. Backslash is the only character that is analyse within a regular string, which should be followed by an escapable character (n, r, t etc.).

Similar questions