top of page
answer2 = input('do you want to encode or decode?')
if answer2 == 'decode':
Str = input ('enter the message to decode');
Str = Str.encode('codecs.encode(64)','strict');
print ("Decoded String: " + Str.decode('codecs.encode(64)','strict'))
if answer2 == 'encode':
Str = input("enter the message to encode");
Str = Str.encode('codecs.encode(64)','strict');
print ("Encoded String: " + Str)
bottom of page