
- Python Basic Tutorial
- Python - Home
- Python - Overview
- Python - Environment Setup
- Python - Basic Syntax
- Python - Comments
- Python - Variables
- Python - Data Types
- Python - Operators
- Python - Decision Making
- Python - Loops
- Python - Numbers
- Python - Strings
- Python - Lists
- Python - Tuples
- Python - Dictionary
- Python - Date & Time
- Python - Functions
- Python - Modules
- Python - Files I/O
- Python - Exceptions
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 Articles
- How do we use double quotation in Python?
- How to use quotation marks in HTML?
- Set quotation marks with CSS
- Differentiate between offer and quotation
- Differentiate between tender and quotation
- How to display a short quotation in HTML?
- MySQL isn’t displaying right single quotation mark(’) after insertion of records
- How to set the type of quotation marks for embedded quotations with JavaScript?
- Comments in Python
- ChainMap in Python
- Namedtuple in Python
- Deque in Python
- OrderedDict in Python
- Generators in Python?
- Counters in Python?

Advertisements