0

What is the difference between \' and \"?

4th Jun 2019, 3:22 AM
Yukine kun
Yukine kun - avatar
2 Answers
+ 2
\' is used to insert single quote character in a single quoted string. Example: print('Doesn\'t John read books') \" is used to insert double quote character in a double quoted string. Example: print("Animation was all about \"fooling\" your eyes from reality.")
4th Jun 2019, 4:11 AM
Ipang
0
Actually the only difference is that ' and " are different characters.
4th Jun 2019, 6:24 AM
Seb TheS
Seb TheS - avatar