[ Thanks to Brendan Scott for this
link. ]
“String
“I have this large quantity of string, a hundred and twenty-two
thousand miles of it to be exact,…“We have already met strings indirectly throughout some of the
other tutorials. If you’ll recall, strings are the things you get
when you put inverted commas around stuff – like this:
‘stuff’. As far as Python is concerned, the inverted commas
transform what might be other sorts of data into a string. There
are actually two three four Amongst our ways of making a string are
such diverse elements as: using inverted commas (‘), using
quotation marks (“) , using triple inverted commas (“‘) [update:]
and triple quotes (“””). Which sort you use depends largely on your
preference. Sometimes, you need to use a certain manner of creating
the string because the string itself contains (eg) an inverted
comma.”