Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/geekcomputers/Python
/ right_rotate
Function
right_rotate
rotate_string.py:7–10 ·
view source on GitHub ↗
(s, val)
Source
from the content-addressed store, hash-verified
5
6
7
def
right_rotate(s, val):
8
s1 = s[0 : len(s) - val]
9
s2 = s[len(s) - val :]
10
return
s2 + s1
11
12
13
def
circular_rotate(s):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected