
- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Quotation in Python
Python accepts single ('), double (") and triple (''' or """) quotes to denote string literals, as long as the same type of quote starts and ends the string.
The triple quotes are used to span the string across multiple lines. For example, all the following are legal −
word = 'word' sentence = "This is a sentence." paragraph = """This is a paragraph. It is made up of multiple lines and sentences."""
- Related Questions & Answers
- How do we use double quotation in Python?
- Set quotation marks with CSS
- Differentiate between offer and quotation
- Differentiate between tender and quotation
- How to use quotation marks in HTML?
- How to display a short quotation in HTML?
- How to set the type of quotation marks for embedded quotations with JavaScript?
- MySQL isn’t displaying right single quotation mark(’) after insertion of records
- ChainMap in Python
- Namedtuple in Python
- Deque in Python
- OrderedDict in Python
- Multiprocessing In Python
- Quine in Python
- Underscore(_) in Python
Advertisements