Encode de chaîne Python
original = "original string"
encoded = original.encode()
Output:b'original string'
Happy Horse
original = "original string"
encoded = original.encode()
Output:b'original string'
string_to_encode = "some random string"
encoded_string = string_to_encode.encode()