Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def substitute(al1,al2,str):
- desh=dict(zip(al1,al2))
- return [desh[s] for s in str]
- alph1='abcdefghijklmnopqrstuvwxyz'
- alph2='defghijklmnopqrstuvwxyzabc'
- print(''.join(substitute(alph1+" ",alph2+" ","the cake is a lie")))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement