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

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to