Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def ceasar(s,k):
- alfabet = 'aąbcćdeęfghijklłmnńoóprsśtuwyzźż'
- slownik = {}
- wynik = []
- for i in range(32):
- slownik[alfabet[i]] = i
- for a in s:
- wynik.append(alfabet[(slownik[a] + k) % 32 ])
- ''.join(wynik)
- print (wynik)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement