0
does anybody have idea what is \'
5 Answers
+ 7
It's the escape sequence character (backslash).
+ 3
For usage of single quote if you use single quote
example
print('Hello 'name'') # cannot be printed, shows SyntaxError.
# Using print('Hello \'name\'') fixes the problem.
Also for special characters
\f = gender character female
\m = gender char male
+ 1
tnx guys
0
if you want to print quotes on the output then you use that .for example
print("hello\'world")
0
yeah \ is the escape sequence character but in this different usage.we want to print double or single quotes in the output then use like that