MCPcopy Create free account
hub / github.com/geekcomputers/Python / left_rotate

Function left_rotate

rotate_string.py:1–4  ·  view source on GitHub ↗
(s, val)

Source from the content-addressed store, hash-verified

1def left_rotate(s, val):
2 s1 = s[0:val]
3 s2 = s[val:]
4 return s2 + s1
5
6
7def right_rotate(s, val):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected