## encode()


Encode a string to bytes.


Usage


``` python
encode(data)
```


## Parameters


`data: str`  
The string to encode.


## Returns


`bytes`  
The encoded bytes.
