mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +08:00
Improved Code and removed Warnings (#483)
This commit is contained in:
@ -2,9 +2,9 @@ from __future__ import print_function
|
||||
import math
|
||||
|
||||
def main():
|
||||
message = input('Enter message: ')
|
||||
key = int(input('Enter key [2-%s]: ' % (len(message) - 1)))
|
||||
mode = input('Encryption/Decryption [e/d]: ')
|
||||
message = raw_input('Enter message: ')
|
||||
key = int(raw_input('Enter key [2-%s]: ' % (len(message) - 1)))
|
||||
mode = raw_input('Encryption/Decryption [e/d]: ')
|
||||
|
||||
if mode.lower().startswith('e'):
|
||||
text = encryptMessage(key, message)
|
||||
|
Reference in New Issue
Block a user