A slice is a part of a string (or of a list) taken by indices: s[a:b] holds the characters from index up to index , but without . Without , the slice starts at the beginning; without , it goes to the end; s[::-1] walks backwards and gives the string reversed.
[a:b] takes what lies between the marks and .