character from the word. For instance, middle("stop") returns ’to’. Note that for corner cases of words with two or one characters,
the middle is an empty string. Here is an example of middle with a string containing several words.
- Code: Select all
>>> T = "an internet server company"
'nterne erve ompan'
Please help for my homework due at midnight...I am so lost