+ 1

Why is the output of print(‘print(“print”)’) print(“print”)? Without backslashes, why is the double quotes escapsed?

Why is the output of print(‘print(“print”)’) print(“print”)? Without backslashes, why is the double quotes escapsed and printed?

16th Oct 2017, 2:47 AM
Jian
1 Answer
0
anything within quotes will be considered as string by python. As 'print("print")' is within quotes, it prints it.
16th Oct 2017, 8:43 AM
RajPrabhakar
RajPrabhakar - avatar