String Encoding and Decoding in Python

Encode and Decode Image

Encoding is the process of turning thoughts into communication. The encoder uses a ‘medium’ to send the message — a phone call, mail, message. The reciver then ‘decodes’, the message into readable form. This process is called Encoding and Decoding Let's Encoding and Decoding in Python (With module and Without module).

Encoding and Decoing in Python

  1. with module
  2. without module
With Module

Module Install

pip install encodingdecoding

Import encode and decode

from encodedecode import *

string = input("Enter String to encode:") encoded_string = encode(string) print(encoded_string)

Output:

Enter String to encode: welcome
119 126&101 108&108 115&99 106&111 118&109 116&101 108&

Without Module

Output:

Enter String to encode: welcome
119 126&101 108&108 115&99 106&111 118&109 116&101 108&

The above two methos are same because the the module was created using the above code by abipravi.

click here you will be linked to the Module

Comments

Popular posts from this blog

Collection List Abipravi

Factorial Program in python