0

What is Significance of single,double and triple quotation?

quotation query

8th Apr 2018, 3:10 PM
Divyanshu chouhan
Divyanshu chouhan - avatar
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 '''
8th Apr 2018, 3:20 PM
📈SmileGoodHope📈
📈SmileGoodHope📈 - avatar
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
8th Apr 2018, 3:23 PM
Markus Kaleton
Markus Kaleton - avatar