MCPcopy Create free account
hub / github.com/Vishruth-S/CompetitiveCode / cipher_word

Function cipher_word

Misc/Caesar_Cipher_Encryptor/solution2.py:26–34  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

24 nletters = shift(letters, key)
25
26 def cipher_word(string):
27 msg = []
28
29 for i in string:
30 index = letters.index(i)
31 i = nletters[index]
32 msg.append(i)
33
34 return "".join(msg)
35
36 sentence = string.split(" ")
37 nsentence = list(map(cipher_word, sentence))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected