Home | | Problem Solving and Python Programming | Quotation in Python

Chapter: Problem Solving and Python Programming : Data, Expressions, Statements

Quotation in Python

Anything that is represented using quotations are considered as string.

QUOTATION IN PYTHON:

 

Python accepts single ('), double (") and triple (''' or """) quotes to denote string literals.


Anything that is represented using quotations are considered as string.

v single quotes ('  ')          Eg, 'This a string in single quotes'

v double quotes (" ")  Eg, "'This a string in double quotes'"

v triple quotes("""  """)  Eg, This is a paragraph. It is made up of multiple lines and sentences."""

 

Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail
Problem Solving and Python Programming : Data, Expressions, Statements : Quotation in Python |

Related Topics

Problem Solving and Python Programming : Data, Expressions, Statements


Privacy Policy, Terms and Conditions, DMCA Policy and Compliant

Copyright © 2018-2023 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.