Using more than 1 double quote /single quote s output iam getting invalid | SoloLearn: Learn to code for FREE!

+1

Using more than 1 double quote /single quote s output iam getting invalid

Like print(""hello"") output getting invalid syntax

4/10/2021 2:49:23 AM

Tathvik

2 Answers

New Answer

+13

you may only use either a pair of one single/double quotes or a pair of three single/double quotes. if you put a text after two single/double quotes, the interpreter assumes that the text is outside of the quotes, and that's the invalid syntax.

+2

if you need to display quotes, you could also use \ print(" \"mini muffin\" ")