#python #course #tutorial import random import string chars = " " + + + chars = list(chars) key = () (key) #ENCRYPT plain_text = input("Enter a message to encrypt: ") cipher_text = "" for letter in plain_text: index = (letter) cipher_text += key[index] print(f"original message : {plain_text}") print(f"encrypted message: {cipher_text}") #DECRYPT cipher_text = input("Enter a message to encrypt: ") plain_text = "" for letter in cipher_text: index = (letter) plain_text += chars[index] print(f"encrypted message: {cipher_text}") print(f"original message : {plain_text}")











