original = "original string" encoded = original.encode() Output:b'original string'
string_to_encode = "some random string" encoded_string = string_to_encode.encode()