Using single quotation | Sololearn: Learn to code for FREE!

0

Using single quotation

If we use single quotation like this. >>>Print('print('print')'). Will generate error so we should use like this. >>>print('print(\'print\')')

10/31/2019 2:56:37 PM

Karen Avanesian

3 Answers

New Answer

+4

Or simply use double quotes: print("print('print')")

+3

Apart from the fact that you used the wrong escape character ('/' instead of '\'), this is a Question and Answer forum. Unless you have a question, please post stuff like this to your own feed please.

+1

Thx for correcting my mistake.