0
Why ' and " work same in print statement? Or Is this matter ?
print ('a') print ("a") Both output will be a
2 Respuestas
+ 4
print functions usually convert everything you give them to string, so it is text for the console.
About " vs '
It depends on the language.
Some languages (Like Java) uses " for String Objects and ' for Character Objects
Languages like python make no difference between " and '
But, if you need single quote as part of the string, probably you want to use double quote.
double_quote = "It's an a"
single_quote = 'It\'s an a'
0
Thank you.. ✌