def my_slice(word, step):
    """slice word with only step"""
start = len(word) - 1 if step < 0 else 0
stop = -len(word) - 1 if step < 0 else len(word)
return word[start:stop:step]
word = 'hello'
step = -1
my_slice(word, step)
Reverse a Python string without omitting start and end slice