0
What is Significance of single,double and triple quotation?
quotation query
2 Answers
+ 2
String: single or double quote
Though both are permitted in Python, but it's more wise to use " " , because it supports to use apostrophe ( ' ) with a word.For example -print("John\'s book") >>> John's book
print( 'This is \"John\'s Company\" ')
>>>This is "John's Company"
Triple quotation ( ''' ''' ) are used in Multi line comments, like ''' this is a multi line comments to give an example of it '''
0
Double quote is what is recommended you use in general but:
Single quotes if you need to store something with quotes in it.
You could use triple quotations if you need to store a string that has quotes and apostrophes in it