The size of "\\" is 2.
1 Like
True
Reason — An escape sequence character is represented as a string with one byte of memory. Therefore, "\\" is a string with two backslashes, which uses 2 bytes of memory.
Answered By
2 Likes
String allows forward and backward type of indexing.
In Python, asc() function returns corresponding Unicode value of a character.
Multiple line string created with the help of triple quotes will include end line character in the length.
A string is a mutable sequence of one or more characters.