mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-06 18:49:26 +08:00
Update caesar_cipher.py
This commit is contained in:
@ -53,7 +53,7 @@ def main():
|
|||||||
elif choice == '2':
|
elif choice == '2':
|
||||||
strng = input("Please enter the string to be decrypted: ")
|
strng = input("Please enter the string to be decrypted: ")
|
||||||
while True:
|
while True:
|
||||||
key = raw_int(input("Please enter off-set between 1-94: "))
|
key = int(input("Please enter off-set between 1-94: "))
|
||||||
if key > 0 and key <= 94:
|
if key > 0 and key <= 94:
|
||||||
print(decrypt(strng, key))
|
print(decrypt(strng, key))
|
||||||
main()
|
main()
|
||||||
|
Reference in New Issue
Block a user