pre-defined functions (with parameters):
- to create substrings
In Python we can treat strings as arrays of characters. We do this by using
string[start:stop:step]
where
- start is the postion of the first character to be displayed.
- stop is the postion to stop displaying characters (not displayed).
- step is the step value, just like a for loop.