0

does anybody have idea what is \'

1st Jan 2017, 6:39 AM
Iman Alimardani
Iman Alimardani - avatar
5 Answers
+ 7
It's the escape sequence character (backslash).
1st Jan 2017, 9:52 AM
Valen.H. ~
Valen.H. ~ - avatar
+ 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
2nd Jan 2017, 2:38 AM
Franc_b
+ 1
tnx guys
2nd Jan 2017, 1:20 PM
Iman Alimardani
Iman Alimardani - avatar
0
if you want to print quotes on the output then you use that .for example print("hello\'world")
1st Jan 2017, 9:25 AM
harish tati
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
1st Jan 2017, 9:54 AM
harish tati