0

Help me understand the difference

"For instance, double quotes can't be directly included in a double quote string; this would ucause it to end prematurely." AND "Double quotes only need to be escaped in double quote strings, and the same is true for single quote strings."

4th Jun 2018, 9:28 AM
Mac Alvin
Mac Alvin - avatar
3 Answers
+ 2
yes,you can add them without using escape character print("He said, 'Hi' ") output: He said 'Hi'
4th Jun 2018, 9:50 AM
‎ ‏‏‎Anonymous Guy
+ 1
thanks sreejith, and jay matthews for your second answer that I've understood perfectly well.
4th Jun 2018, 10:07 AM
Mac Alvin
Mac Alvin - avatar
0
....that has helped me understand the second description but not the first
4th Jun 2018, 9:37 AM
Mac Alvin
Mac Alvin - avatar