def rotate_left(x, y):
 if (len(x) == 0):
  return []
 y = (y % len(x))
 return (x[y:] + x[:y])

def rotate_left ( x , y ) : if ( len ( x ) == 0 ) : return [ ] y = ( y % len ( x ) ) return ( x [ y : ] + x [ : y ] )
left rotates a list x by the number of steps specified in y .