SHARE
TWEET

Untitled

a guest Feb 18th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. xd = lambda s,k,z=0: ''.join([[[chr(ord(l)+i) if ord(l)+i<=ord('z') else chr(ord(l)+i-26) for i in range(26)] for l in k.lower()][litera[0]%len(k)][[chr(ord('a')+i) if ord('a')+i<=ord('z') else chr(ord('a')+i-26) for i in range(26)].index(litera[1])] for litera in enumerate(s)]) if z else ''.join([chr(ord(x)+k%26) if ord(x)+k%26<=ord('z') else chr(ord(x)+k%26-26) for x in s.lower()])
  2. print(xd('costam','klucz',1))
  3. print(xd('costam',3))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top