Python String To Bytes, encode ( ) and byte ( ) methods.