Here is a code
x = “\\”
print(len(x))
The output is 2 ,where as I thought it would be 4 as there are four characters…Can someone please explain why it is 2
x = "\"
print(len(x))
This code gives SyntaxError: EOL while scanning string literal
Someone please exlain why this gives error
When I post this question it turns 4 back slashes into 2 and also turns 3 backslashes into 1 …I don’t know why