How to print double quotes or single quotes along with your text?
Of course, you need a back slash character (\).
>>>print "Learning \"Python\" is funny."
Learning "Python" is funny.
The back slash also useful when you have a lengthy text to be printed out. The lengthy text can span to many lines.
>>>print "I like Python. \
It is powerful programming language."
Posted by: yalog | post date: 12-16-2012 | Subject: Python Programming Language
This website intents to provide free and high quality tutorials, examples, exercises and solutions, questions and answers of programming and scripting languages: