Why is the output of this code >>> print('print("print")') is >>> print("print") ? As we know Characters like double quote must | Sololearn: Learn to code for FREE!
0

Why is the output of this code >>> print('print("print")') is >>> print("print") ? As we know Characters like double quote must

This is the first problem of Basic Concepts Simple Input & Output Lesson.

28th Dec 2018, 10:51 AM
Kazi Tanvir Ahmed
Kazi Tanvir Ahmed - avatar
1 Answer
0
The output is print("print") because you can have " quotes in your string if they are not the markings. Example print(" hello "paul" ") will return an error. print('hello" paul" ') will not.
28th Dec 2018, 1:05 PM
Paul Grasser
Paul Grasser - avatar