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?
1 answers ( 1 marked as helpful)
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.
Submit an answer
Resolved: Exam Question. Question No: 24. Not totally correct option and explanation.
I am doing the question in exercise with using for loop and if statement,the result came out to be 1