saving . . . saved Single quote vs. double quote has been deleted. Single quote vs. double quote has been hidden .
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 25-07-15, 7:22 a.m. kannan

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.
25-07-15, 12:49 p.m. Trupti


Log-in to answer to this question.