You need to fill in the defaults to get a better feeling for slicing:
str1 = "madam"
begin = 0 # default is 0
end = len(str1) # end is exclusive, default is length of string
step = -1 # - sign --> from the end in steps of 1, default is 1
reversed_string = str1[begin:end:step]
I am working creating a fully encapsulated, homogeneous singly linked data structure. The Listing class and SinglyLinkedList class that are part of the whole application compile fine, but the problem ...