print double quotes or single quote in Python

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:
C, C++, C#, Java, VB.NET, Python, VBA,PHP & Mysql, SQL, JSP, ASP.NET,HTML, CSS, JQuery, JavaScript and other applications such as MS Excel, MS Access, and MS Word. However, we don't guarantee all things of the web are accurate. If you find any error, please report it then we will take actions to correct it as soon as possible.