The most generic way is to always deal with slices and not individual items, eg:
def function(seq, n):
return seq[n+1:] + seq[n:n+1] + seq[:n]
^^^^^^^^^^
We always make that a length 1 iterable rather than a non iterable single item.