MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / left_shift

Function left_shift

other/sdes.py:14–19  ·  view source on GitHub ↗

>>> left_shift("0123456789") '1234567890'

(data)

Source from the content-addressed store, hash-verified

12
13
14def left_shift(data):
15 """
16 >>> left_shift("0123456789")
17 '1234567890'
18 """
19 return data[1:] + data[0]
20
21
22def xor(a, b):

Callers 1

sdes.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected