Single quote vs. double quote
Title
Question
I notice that double quote also works in the plot examples. Is this always true in Python. That is, are single and double quotes interchangeable?
Python Embellishing-a-plot 04-05 min 50-60 sec
Answers:
Dear User,
There is no difference between using single quotes and double quotes in Python. They can be used interchangeably. As a matter of personal preference you can use any but stick to one of them to avoid confusion. As convention, most of the programmers prefer double quotes for string.
Hope this helps.
Thanks.
Login to add comment