MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / shift_left

Function shift_left

Python/des.py:97–105  ·  view source on GitHub ↗
(k, nth_shifts)

Source from the content-addressed store, hash-verified

95
96
97def shift_left(k, nth_shifts):
98 s = ""
99 for i in range(nth_shifts):
100 for j in range(1, len(k)):
101 s = s + k[j]
102 s = s + k[0]
103 k = s
104 s = ""
105 return k
106
107# calculating xow of two strings of binary number a and b
108

Callers 1

des.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected