How to convert a string to bytes in Python

How to convert a string to bytes in Python

More to explore

Based on this image's title: “How to convert a string to bytes in Python”