encode
encode()
Section titled “encode()”Category: String
Encodes the input string using the specified format
Signature
Section titled “Signature”- Return type:
string - Parameters:
formatstring— Encoding format (‘base64’, ‘hex’, ‘url’)
Examples
Section titled “Examples”'Hello'.encode('base64')'test@example.com'.encode('url')