0

Difference between single and double quotes?

Is there a difference between “ and ‘ ?

27th Jul 2021, 3:46 PM
May Moorefield
May Moorefield - avatar
3 Answers
+ 3
double quotes is for representing string single quotes is for representing character exception in python both are the same.
27th Jul 2021, 3:47 PM
minirkk
minirkk - avatar
+ 18
May Moorefield In PYTHON As far as language syntax is concerned, there is no difference in single or double quoted string. Both representations can be used interchangeably In C and in C++ single quotes identify a single character, while double quotes create a string literal. 'a' is a single a character literal, while "a" is a string literal containing an 'a' and a null terminator (that is a 2 char array). Single quotes are used to indicate the beginning and end of a string in SQL. Double quotes generally aren't used in SQL, but that can vary from database to database.
27th Jul 2021, 4:07 PM
SωAti
SωAti - avatar
+ 2
It varies depending on the language
27th Jul 2021, 4:13 PM
ZQQ
ZQQ - avatar