Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/geekcomputers/Python
/ rotate_string.py
File
rotate_string.py
rotate_string.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
def
left_rotate(s, val):
2
s1 = s[0:val]
3
s2 = s[val:]
4
return
s2 + s1
Callers
nothing calls this directly
Calls
1
circular_rotate
Function · 0.85
Tested by
no test coverage detected