[Tutor] string
Emile van Sebille
emile at fenx.com
Thu May 19 16:55:49 CEST 2011
On 5/19/2011 7:45 AM naheed arafat said...
> why there is two way to represent strings in python ? single-coated
> ( ' ' ) and double-coated ( " " ) strings both serve the purpose of
> string. Then what is the difference?
>
Convenience. Particularly when the strings contain quote characters.
mystring = "That's the difference"
other = 'Python was named after "Monty Python" the TV show'
Emile
More information about the Tutor
mailing list