I'm study Learnpythonthehardway, in ex40, I met this slice of code.
for sentence in snippet, phrase:
result = sentence[:]
I'm not quite understanding sentence[:] here, especially the [:]
I've tried to figure it out by underlying test code:
sentence = 'sss errf : fe : eee'
f = 33
result = sentence[:f]
print result
but nothing happens, result is the same as the sentence
So, smart geeks, what does sentence[:] mean here?