Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs


More on LinuxToday


Python4Kids: New Tutorial: String

Aug 05, 2010, 19:36 (0 Talkback[s])
(Other stories by Brendan Scott)

[ 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."

Complete Story

Related Stories: