0

What's the significance of \(backslash) and '''(triple quote)?

1st Oct 2018, 6:49 PM
partha
partha - avatar
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. '''
1st Oct 2018, 8:03 PM
Ulisses Cruz
Ulisses Cruz - avatar
+ 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
1st Oct 2018, 7:41 PM
АлДĐșŃĐ°ĐœĐŽŃ€