0

Inside a single quote a double quote is there but on running it dose 'nt shows error ...... print('print("print")') ans wasnt er

3rd Apr 2018, 7:13 PM
Chandreyee Manna
Chandreyee Manna - avatar
4 odpowiedzi
+ 2
in python this will print ... print("print") as expected
3rd Apr 2018, 8:15 PM
Damyan Petkov
Damyan Petkov - avatar
+ 1
thank you
3rd Apr 2018, 7:20 PM
Chandreyee Manna
Chandreyee Manna - avatar
0
Which programming language? What is probably happening, is the compiler (run-time or otherwise), is parsing 'print ("print")' as a string, just like it would with 'hello'. The only print being parsed as a function call, is the first occurrence.
3rd Apr 2018, 7:19 PM
Emma
0
its python
3rd Apr 2018, 7:21 PM
Chandreyee Manna
Chandreyee Manna - avatar