MCPcopy Create free account
hub / github.com/geekcomputers/Python / decode

Function decode

Caesar Cipher Encoder & Decoder.py:52–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50
51
52def decode():
53 decoded_cipher = ""
54 cipher = input("\n[>] Enter your cipher text: ")
55 key = get_int()
56
57 for character in cipher:
58 ascii = ord(character) - key
59 decoded_cipher += chr(ascii)
60
61 print(decoded_cipher)
62
63
64if __name__ == "__main__":

Callers 1

mainFunction · 0.85

Calls 1

get_intFunction · 0.85

Tested by

no test coverage detected