Quick Print – CSKC
Sign In

Search

siteicon
Code Learning #PYTHON#8177 Back

string variations

Python allows you to define the literal form of strings in either single quote (‘) or double quote (“”). Both have similar meaning. We are also allowed to give triple single quotes (”’) for string literals which can be run into many lines. 

 

Source Code

		 

Run Output

INDIA IS A PART OF ASIA.
CAPITAL OF INDIA IS:
NEW DELHI
I adore 'Python'
I love "Python"