Kingsway to Python: String data type


st00.py - string concatenations

st01.py - string input from keyboard: raw_input

st02.py - Strings can be repeated with *

st03.py - Two string literals next to each other are automatically concatenated

st04.py - string length calculation

st05.py - Strings can be subscripted (indexed), the first character of a string has index 0

st06.py - Slice indices have useful defaults

st07.py - Degenerate slice indices are handled gracefully

st08.py - There is no separate character type

st09.py - Measure some strings

st10.py - Indices may be negative numbers, to start counting from the right

st11.py - Out-of-range negative slice indices are truncated

st12.py - convert any value to a string: pass it to the str()

st13.py - convert any value to a string: pass it to the repr()

st14.py - Python strings cannot be changed.

st15.py - find(substr) and index(substr) in development ...

st16.py - isalpha, isdigit, isalnum in development ...

st17.py - isupper and islower in development ...

st18.py - swapcase, upper, lower in development ...

st19.py - title, istitle, capitalize in development ...

st20.py - lstrip, rstrip, strip in development ...

st21.py - startswith(), endswith() in development ...

st22.py - expandtabs() in development ...

st23.py - count(substr) - number of substr in str in development ...

st24.py - replace(oldsubstr, newsubstr) in development ...

st25.py - format() - string formatting operation in development ...

st26.py - splitlines() - return list of lines without linebreaks in development ...

st27.py - split() - return list of words in a string in development ...

st28.py - in development ...

st29.py - join(list) - make a string from the list in development ...

st30.py - in development ...

st40.py - String Pattern Matching