class Solution(object): def leftRotateString(self, s, n): """ :type s: str :type n: int :rtype: str """ x,y=s[0:n],s[n:] # print(x+y) return y+x