Question: 
Write a python function to left rotate the string.


Model's Code:
def left_rotate(s, n):
    n = n % len(s)
    return s[n:] + s[:n]



Sample Correct Code:
def left_rotate(s,d):
    tmp = s[d : ] + s[0 : d]
    return tmp  


Asserts:
assert left_rotate("python",2) == "thonpy"   
assert left_rotate("bigdata",3 ) == "databig" 
assert left_rotate("hadoop",1 ) == "adooph" 


Tests:
Test 1 of 3: PASS
Test 2 of 3: PASS
Test 3 of 3: PASS

Test 973 of 974: 745/973 (76.56731757451182%): success