You could use slicing and indexing:
def shift(s):
return s[1:] + s[0]
data = ['Hello', 'what', 'is', 'your', 'name']
result = [shift(s) for s in data]
print(result)
Output
['elloH', 'hatw', 'si', 'oury', 'amen']
The statement result = [shift(s) for s in data]
is known as a list comprehension, is the equivalent of the following:
result = []
for s in data:
result.append(shift(s))
Finally another alternative is to use map:
result = list(map(shift, data))
The function map applies shift to each element of data, but it returns (in Python 3) an iterable so you need to convert it to list.