GfG QA is closing soon... Please refer PRACTICE or GfG now on wards !!

Difference between single and double quotes in python string ?

asked Mar 23, 2016 by no3

1 Answer

No there is no difference between single and double quoted string in python.

according to python docs : String literals can be enclosed in matching single quotes (') or double quotes (").    --

So it depends on your coding style and how you treat different form of string.

answered Mar 23, 2016 by utkarsh111