Resolved: Single and double quotes when coding
Are single and double quotes interchangeable when coding in Python or are there exceptions when the one or the other should rather be used?
Thank you!
1 answers ( 1 marked as helpful)
Hi Anita!
Thanks for reaching out.
They can be used both. The idea is that if you have used single quotes in your file, then it is good practice to use the same style in this file and stick to the single quotes. Anyway, this is just for styling.
Hope this helps.
Best,
Tsvetelin