0
What's the significance of \(backslash) and '''(triple quote)?
2 Answers
+ 2
backslash is used inside strings to escape some caracters or create escape sequences like:
\n (new line)
\b (backspace)
\a (alert)
\f (form feed)
\r (cariage return)
\t (horizontal tab)
\v (vertical tab)
\\ (backslash)
\' (single quotation mark)
\" (doube quotation mark)
\? (question mark)
etc.
The triple quote in Python let's you write a string that spans multiple lines like:
'''
This is a string that spans
multiple lines.
'''
+ 1
In the ask of little information.See my examples and perhaps you will find the answer you need:
https://code.sololearn.com/cQhp33KuTVi4/?ref=app